[Rt-commit] [svn] r1679 - in rt/branches/3.3-TESTING: . lib/RT
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Thu Oct 21 13:19:46 EDT 2004
Author: jesse
Date: Thu Oct 21 13:19:45 2004
New Revision: 1679
Modified:
rt/branches/3.3-TESTING/ (props changed)
rt/branches/3.3-TESTING/lib/RT/Principal_Overlay.pm
Log:
r6076 at tinbook: jesse | 2004-10-21T16:46:20.466296Z
ACL: Fixed logic in an ACL query so that it returns failure when handed an invalid object, rather than trying a bogus SQL query and failing.
Modified: rt/branches/3.3-TESTING/lib/RT/Principal_Overlay.pm
==============================================================================
--- rt/branches/3.3-TESTING/lib/RT/Principal_Overlay.pm (original)
+++ rt/branches/3.3-TESTING/lib/RT/Principal_Overlay.pm Thu Oct 21 13:19:45 2004
@@ -257,12 +257,11 @@
return (undef);
}
- if ( defined( $args{'Object'} )) {
- return (undef) unless (UNIVERSAL::can( $args{'Object'}, 'id' ) );
- push(@{$args{'EquivObjects'}}, $args{Object});
- }
- elsif ( $args{'ObjectId'} && $args{'ObjectType'} ) {
- $RT::Logger->crit(Carp::cluck("API not supprted"));
+ if ( defined( $args{'Object'} )
+ && UNIVERSAL::can( $args{'Object'}, 'id' )
+ && $args{'Object'}->id )
+ {
+ push( @{ $args{'EquivObjects'} }, $args{Object} );
}
else {
$RT::Logger->crit("$self HasRight called with no valid object");
More information about the Rt-commit
mailing list