[Rt-commit] rt branch, 3.8-trunk, updated. 81e3b5f7374fd9298b80ce0eefb2d306e3b9bd03
Kevin Falcone
falcone at bestpractical.com
Tue Aug 4 08:54:30 EDT 2009
The branch, 3.8-trunk has been updated
via 81e3b5f7374fd9298b80ce0eefb2d306e3b9bd03 (commit)
from 33efc7f398b09ebc9057096b2a24301a2a6bb94c (commit)
Summary of changes:
lib/RT/Transaction_Overlay.pm | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 81e3b5f7374fd9298b80ce0eefb2d306e3b9bd03
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Mon Aug 3 16:48:26 2009 -0400
Give Transactions ACLEquivalenceObjects
This only works for Ticket Transaction Custom fields and returns
the Ticket and the Queue so people who are Requestors of a Ticket
can see Transaction Custom Fields.
diff --git a/lib/RT/Transaction_Overlay.pm b/lib/RT/Transaction_Overlay.pm
index 3878c61..85434f2 100755
--- a/lib/RT/Transaction_Overlay.pm
+++ b/lib/RT/Transaction_Overlay.pm
@@ -1199,4 +1199,27 @@ sub _CacheConfig {
'cache_for_sec' => 6000,
}
}
+
+
+=head2 ACLEquivalenceObjects
+
+This method returns a list of objects for which a user's rights also apply
+to this Transaction.
+
+This currently only applies to Transaction Custom Fields on Tickets, so we return
+the Ticket's Queue and the Ticket.
+
+This method is called from L<RT::Principal/HasRight>.
+
+=cut
+
+sub ACLEquivalenceObjects {
+ my $self = shift;
+
+ return unless $self->ObjectType eq 'RT::Ticket';
+ my $object = $self->Object;
+ return $object,$object->QueueObj;
+
+}
+
1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list