[Rt-commit] r8523 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Mon Aug 13 20:36:39 EDT 2007
Author: ruz
Date: Mon Aug 13 20:36:39 2007
New Revision: 8523
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Queue_Overlay.pm
Log:
* pass through arguments
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Queue_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Queue_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Queue_Overlay.pm Mon Aug 13 20:36:39 2007
@@ -1130,15 +1130,15 @@
Principal => $self->CurrentUser,
@_
);
- unless ( defined $args{'Principal'} ) {
- $RT::Logger->debug("Principal undefined in Queue::HasRight");
-
+ my $principal = delete $args{'Principal'};
+ unless ( $principal ) {
+ $RT::Logger->error("Principal undefined in Queue::HasRight");
+ return undef;
}
- return (
- $args{'Principal'}->HasRight(
- Object => $self->Id ? $self : $RT::System,
- Right => $args{'Right'}
- )
+
+ return $principal->HasRight(
+ %args,
+ Object => ($self->Id ? $self : $RT::System),
);
}
More information about the Rt-commit
mailing list