3 %# Copyright (c) 1996-2003 Jesse Vincent <jesse@bestpractical.com>
5 %# (Except where explictly superceded by other copyright notices)
7 %# This work is made available to you under the terms of Version 2 of
8 %# the GNU General Public License. A copy of that license should have
9 %# been provided with this software, but in any event can be snarfed
12 %# This work is distributed in the hope that it will be useful, but
13 %# WITHOUT ANY WARRANTY; without even the implied warranty of
14 %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 %# General Public License for more details.
17 %# Unless otherwise specified, all modifications, corrections or
18 %# extensions to this work which alter its source code become the
19 %# property of Best Practical Solutions, LLC when submitted for
20 %# inclusion in the work.
24 <& /Admin/Elements/Header, Title => loc('Modify user rights for queue [_1]', $QueueObj->Name) &>
25 <& /Admin/Elements/QueueTabs, id => $id,
26 QueueObj => $QueueObj,
27 current_tab => $current_tab,
28 Title => loc('Modify user rights for queue [_1]', $QueueObj->Name) &>
29 <& /Elements/ListActions, actions => \@results &>
31 <FORM METHOD=POST ACTION="UserRights.html">
32 <INPUT TYPE=HIDDEN NAME=id VALUE="<% $QueueObj->id %>">
36 <& /Elements/Callback, QueueObj => $QueueObj, results => \@results, %ARGS &>
37 % while (my $Member = $Users->Next()) {
38 % my $UserObj = $Member->MemberObj->Object();
39 % my $group = RT::Group->new($session{'CurrentUser'});
40 % $group->LoadACLEquivalenceGroup($Member->MemberObj);
46 <& /Admin/Elements/SelectRights, PrincipalId=> $group->PrincipalId,
47 Object => $QueueObj &>
53 <& /Elements/Submit, Label => loc('Modify User Rights'), Reset => 1 &>
60 my @results = ProcessACLChanges(\%ARGS);
62 # {{{ Deal with setting up the display of current rights.
67 Abort(loc("No Queue defined"));
70 my $QueueObj = RT::Queue->new($session{'CurrentUser'});
71 $QueueObj->Load($id) || Abort(loc("Couldn't load queue [_1]",$id));
73 # Find out which users we want to display ACL selects for
74 my $Privileged = RT::Group->new($session{'CurrentUser'});
75 $Privileged->LoadSystemInternalGroup('Privileged');
76 my $Users = $Privileged->MembersObj();
82 $current_tab = 'Admin/Queues/UserRights.html?id='.$QueueObj->id;