[Rt-commit] r8341 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Tue Jul 31 18:48:37 EDT 2007
Author: ruz
Date: Tue Jul 31 18:48:37 2007
New Revision: 8341
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm
Log:
* test for nobody user was incorrect
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm Tue Jul 31 18:48:37 2007
@@ -227,8 +227,8 @@
my $acl = RT::ACL->new( $RT::SystemUser );
$acl->Limit( FIELD => 'RightName', OPERATOR => '!=', VALUE => 'SuperUser' );
while ( my $ace = $acl->Next ) {
- my $principal = $ace->PrincipalObj;
- if ( $principal->IsUser && $principal->Object->Name eq 'Nobody' ) {
+ my $obj = $ace->PrincipalObj->Object;
+ if ( $obj->isa('RT::Group') && $obj->Type eq 'UserEquiv' && $obj->Instance == $RT::Nobody->id ) {
next;
}
$ace->Delete;
More information about the Rt-commit
mailing list