[Rt-commit] r6767 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Thu Jan 18 10:54:20 EST 2007


Author: ruz
Date: Thu Jan 18 10:54:08 2007
New Revision: 6767

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm

Log:
 r4387 at cubic-pc:  cubic | 2007-01-18 06:35:11 +0300
 Ticket::AddWatcher()
 * as we check ModifyTicket right in any case then we could do it asap
   and call _AddWatcher without other checks


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm	Thu Jan 18 10:54:08 2007
@@ -1328,6 +1328,9 @@
         @_
     );
 
+    return $self->_AddWatcher( %args )
+        if $self->CurrentUserHasRight('ModifyTicket');
+
     # XXX, FIXME, BUG: if only email is provided then we only check
     # for ModifyTicket right, but must try to get PrincipalId and
     # check Watch* rights too if user exist


More information about the Rt-commit mailing list