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 group [_1]', $GroupObj->Name) &>
25 <& /Admin/Elements/GroupTabs,
26 GroupObj => $GroupObj,
27 current_tab => 'Admin/Groups/UserRights.html?id='.$id,
28 Title => loc('Modify user rights for group [_1]', $GroupObj->Name) &>
29 <& /Elements/ListActions, actions => \@results &>
31 <FORM METHOD=POST ACTION="UserRights.html">
32 <INPUT TYPE=HIDDEN NAME=id VALUE="<% $GroupObj->id %>">
34 <& /Elements/TitleBoxStart, title => loc('Modify user rights for group [_1]', $GroupObj->Name) &>
38 % while (my $Member = $Users->Next()) {
39 % my $UserObj = $Member->MemberObj->Object();
45 <& /Admin/Elements/SelectRights, PrincipalId => $Member->MemberObj->Id,
46 PrincipalType => 'User',
47 Object => $GroupObj &>
53 <& /Elements/TitleBoxEnd &>
54 <& /Elements/Submit, Caption => loc("Be sure to save your changes"), Reset => 1 &>
61 my @results = ProcessACLChanges(\%ARGS);
63 # {{{ Deal with setting up the display of current rights.
66 #Define vars used in html above
70 Abort(loc("No Group defined"));
73 my $GroupObj = RT::Group->new($session{'CurrentUser'});
74 $GroupObj->Load($id) || Abort(loc("Couldn't load group [_1]",$id));
76 # Find out which users we want to display ACL selects for
77 my $Privileged = RT::Group->new($session{'CurrentUser'});
78 $Privileged->LoadSystemInternalGroup('Privileged');
79 my $Users = $Privileged->MembersObj();