[Rt-commit] r6768 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Thu Jan 18 10:54:35 EST 2007
Author: ruz
Date: Thu Jan 18 10:54:33 2007
New Revision: 6768
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm
Log:
r4388 at cubic-pc: cubic | 2007-01-18 06:38:40 +0300
Ticket::AddWatcher()
* get rid of checks for ModifyTicket right as we do it earlier
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:33 2007
@@ -1344,8 +1344,7 @@
# If it's an AdminCc and they don't have
# 'WatchAsAdminCc' or 'ModifyTicket', bail
if ( $args{'Type'} eq 'AdminCc' ) {
- unless ( $self->CurrentUserHasRight('ModifyTicket')
- or $self->CurrentUserHasRight('WatchAsAdminCc') ) {
+ unless ( $self->CurrentUserHasRight('WatchAsAdminCc') ) {
return ( 0, $self->loc('Permission Denied'))
}
}
@@ -1353,9 +1352,7 @@
# If it's a Requestor or Cc and they don't have
# 'Watch' or 'ModifyTicket', bail
elsif ( ( $args{'Type'} eq 'Cc' ) or ( $args{'Type'} eq 'Requestor' ) ) {
-
- unless ( $self->CurrentUserHasRight('ModifyTicket')
- or $self->CurrentUserHasRight('Watch') ) {
+ unless ( $self->CurrentUserHasRight('Watch') ) {
return ( 0, $self->loc('Permission Denied'))
}
}
@@ -1369,9 +1366,7 @@
# and the current user doesn't have 'ModifyTicket'
# bail
else {
- unless ( $self->CurrentUserHasRight('ModifyTicket') ) {
- return ( 0, $self->loc("Permission Denied") );
- }
+ return ( 0, $self->loc("Permission Denied") );
}
# }}}
More information about the Rt-commit
mailing list