[Rt-commit] [rtir] 16/22: reuse RT::IR->DutyTeamAllQueueRights
Jesse Vincent
jesse at bestpractical.com
Sun Mar 29 02:51:04 EDT 2015
This is an automated email from the git hooks/post-receive script.
jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.
commit 0522120f524fad5a5d694b6da9660168e821fd79
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Sat Mar 28 22:00:19 2015 -0700
reuse RT::IR->DutyTeamAllQueueRights
---
bin/add_constituency.in | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/bin/add_constituency.in b/bin/add_constituency.in
index a06b340..618f741 100755
--- a/bin/add_constituency.in
+++ b/bin/add_constituency.in
@@ -207,20 +207,6 @@ foreach my $lifecycle (@lifecycles){
my $dutyteam = create_or_load_group('DutyTeam '.$constituency);
my $ro = create_or_load_group('ReadOnly '.$constituency);
-my @DUTYTEAM_QUEUE_RIGHTS = (
-
- 'OwnTicket',
- 'CommentOnTicket',
- 'ShowTicket',
- 'ShowTicketComments',
- 'StealTicket',
- 'TakeTicket',
- 'Watch',
- 'CreateTicket',
- 'SeeQueue',
- 'ShowTemplate',
-);
-
my @RO_QUEUE_RIGHTS = (
'ShowTicket',
@@ -238,7 +224,7 @@ my @RO_CF_RIGHTS = ( 'SeeCustomField');
# Grant that new dutyteam rights to see and update the CFs
grant_group_cf_rights($dutyteam, @DUTYTEAM_CF_RIGHTS);
# Grant that new dutyteam all the regular dutyteam rights for the new constituency queues
- grant_group_queue_rights($dutyteam, \%queues, @DUTYTEAM_QUEUE_RIGHTS);
+ grant_group_queue_rights($dutyteam, \%queues, RT::IR->DutyTeamAllQueueRights);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list