[Rt-commit] [svn] r1823 - in rt/branches/PLATANO-EXPERIMENTAL-CSS:
. lib/RT
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Thu Nov 11 03:27:35 EST 2004
Author: jesse
Date: Thu Nov 11 03:27:35 2004
New Revision: 1823
Modified:
rt/branches/PLATANO-EXPERIMENTAL-CSS/ (props changed)
rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Principal_Overlay.pm
Log:
r9085 at tinbook: jesse | 2004-11-11T02:59:34.761573Z
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/PLATANO-EXPERIMENTAL-CSS/lib/RT/Principal_Overlay.pm
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Principal_Overlay.pm (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Principal_Overlay.pm Thu Nov 11 03:27:35 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