[Rt-commit] r9692 - rt/branches/3.6-RELEASE/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Fri Nov 16 17:37:59 EST 2007
Author: ruz
Date: Fri Nov 16 17:37:59 2007
New Revision: 9692
Modified:
rt/branches/3.6-RELEASE/lib/RT/Principal_Overlay.pm
Log:
* minor
Modified: rt/branches/3.6-RELEASE/lib/RT/Principal_Overlay.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/Principal_Overlay.pm (original)
+++ rt/branches/3.6-RELEASE/lib/RT/Principal_Overlay.pm Fri Nov 16 17:37:59 2007
@@ -303,7 +303,8 @@
return (undef);
}
- $args{EquivObjects} = [ @{ $args{EquivObjects} } ] if $args{EquivObjects};
+ $args{'EquivObjects'} = [ @{ $args{'EquivObjects'} } ]
+ if $args{'EquivObjects'};
if ( $self->Disabled ) {
$RT::Logger->error( "Disabled User #"
@@ -317,7 +318,7 @@
&& UNIVERSAL::can( $args{'Object'}, 'id' )
&& $args{'Object'}->id ) {
- push( @{ $args{'EquivObjects'} }, $args{Object} );
+ push @{ $args{'EquivObjects'} }, $args{'Object'};
}
else {
$RT::Logger->crit("HasRight called with no valid object");
@@ -428,7 +429,7 @@
"SELECT ACL.id from ACL, Groups, Principals, CachedGroupMembers WHERE " .
# Only find superuser or rights with the name $right
- "(ACL.RightName = 'SuperUser' OR ACL.RightName = '$right') "
+ "(ACL.RightName = 'SuperUser' OR ACL.RightName = '$right') "
# Never find disabled groups.
. "AND Principals.Disabled = 0 "
More information about the Rt-commit
mailing list