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 group rights for group [_1]', $GroupObj->Name) &>
25 <& /Admin/Elements/GroupTabs,
26 GroupObj => $GroupObj,
27 current_tab => 'Admin/Groups/GroupRights.html?id='.$id,
28 Title => loc('Modify group rights for group [_1]', $GroupObj->Name) &>
29 <& /Elements/ListActions, actions => \@results &>
31 <FORM METHOD=POST ACTION="GroupRights.html">
32 <INPUT TYPE=HIDDEN NAME=id VALUE="<% $GroupObj->id %>">
34 <& /Elements/TitleBoxStart, title => loc('Modify group rights for group [_1]', $GroupObj->Name) &>
36 <h1><&|/l&>System groups</&></h1>
38 % $Groups = RT::Groups->new($session{'CurrentUser'});
39 % $Groups->LimitToSystemInternalGroups();
40 % while (my $Group = $Groups->Next()) {
43 <% loc($Group->Type) %>
46 <& /Admin/Elements/SelectRights, PrincipalId => $Group->PrincipalId,
47 PrincipalType => 'Group',
48 Object => $GroupObj &>
53 <h1><&|/l&>User defined groups</&></h1>
55 % $Groups = RT::Groups->new($session{'CurrentUser'});
56 % $Groups->LimitToUserDefinedGroups();
57 % while (my $Group = $Groups->Next()) {
63 <& /Admin/Elements/SelectRights, PrincipalId => $Group->PrincipalId,
64 PrincipalType => 'Group',
65 Object => $GroupObj &>
71 <& /Elements/TitleBoxEnd &>
72 <& /Elements/Submit, Caption => loc("Be sure to save your changes"), Reset => 1 &>
79 my @results = ProcessACLChanges(\%ARGS);
83 Abort(loc("No Group defined"));
86 my $GroupObj = RT::Group->new($session{'CurrentUser'});
87 $GroupObj->Load($id) || Abort(loc("Couldn't load group [_1]",$id));