[Rt-commit] r18332 - rt/3.8/trunk/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Tue Feb 10 17:30:42 EST 2009
Author: ruz
Date: Tue Feb 10 17:30:40 2009
New Revision: 18332
Modified:
rt/3.8/trunk/lib/RT/Principal_Overlay.pm
rt/3.8/trunk/lib/RT/Record.pm
Log:
* allow developers to define ACLEquivalenceObjects on any record not only tickets
Modified: rt/3.8/trunk/lib/RT/Principal_Overlay.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Principal_Overlay.pm (original)
+++ rt/3.8/trunk/lib/RT/Principal_Overlay.pm Tue Feb 10 17:30:40 2009
@@ -323,23 +323,13 @@
return (undef);
}
- # If this object is a ticket, we care about ticket roles and queue roles
- if ( UNIVERSAL::isa( $args{'Object'} => 'RT::Ticket' ) ) {
-
-
- # this is a little bit hacky, but basically, now that we've done
- # the ticket roles magic, we load the queue object
- # and ask all the rest of our questions about the queue.
- unshift @{ $args{'EquivObjects'} }, $args{'Object'}->ACLEquivalenceObjects;
-
- }
+ unshift @{ $args{'EquivObjects'} }, $args{'Object'}->ACLEquivalenceObjects;
unshift @{ $args{'EquivObjects'} }, $RT::System
unless $self->can('_IsOverrideGlobalACL')
&& $self->_IsOverrideGlobalACL( $args{'Object'} );
-
# {{{ If we've cached a win or loss for this lookup say so
# Construct a hashkeys to cache decisions:
Modified: rt/3.8/trunk/lib/RT/Record.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Record.pm (original)
+++ rt/3.8/trunk/lib/RT/Record.pm Tue Feb 10 17:30:40 2009
@@ -1889,15 +1889,9 @@
return $cf;
}
+sub ACLEquivalenceObjects { }
-# }}}
-
-# }}}
-
-# }}}
-
-sub BasicColumns {
-}
+sub BasicColumns { }
sub WikiBase {
return RT->Config->Get('WebPath'). "/index.html?q=";
More information about the Rt-commit
mailing list