-This class allows "overlay" methods to be placed
-into the following files _Overlay is for a System overlay by the original author,
-_Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.
+sub Next {
+ my $self = shift;
+
+ my $Transaction = $self->SUPER::Next();
+ if ((defined($Transaction)) and (ref($Transaction))) {
+ # If the user can see the transaction's type, then they can
+ # see the transaction and we should hand it back.
+ if ($Transaction->Type) {
+ return($Transaction);
+ }
+
+ #If the user doesn't have the right to show this ticket
+ else {
+ return($self->Next());
+ }
+ }
+
+ #if there never was any ticket
+ else {
+ return(undef);
+ }
+}
+