blob: 75d9cb2822c2e1b4c093be3878cd80faf1751733 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<& /Admin/Elements/Header, Title => 'Modify user rights for queue '. $QueueObj->Name &>
<& /Admin/Elements/QueueTabs, id => $id &>
<& /Elements/ListActions, actions => \@results &>
<FORM METHOD=POST ACTION="UserRights.html">
<INPUT TYPE=HIDDEN NAME=id VALUE="<% $QueueObj->id %>">
<& /Elements/TitleBoxStart, title => 'Modify user rights for queue '.$QueueObj->Name &>
<TABLE>
% while (my $UserObj = $Users->Next()) {
<TR ALIGN=RIGHT>
<TD VALIGN=TOP>
<% $UserObj->Name %>
</TD>
<TD>
<& /Admin/Elements/SelectRights, PrincipalObj => $UserObj,
PrincipalType => 'User',
Scope => 'Queue',
QueueObj => $QueueObj &>
</TD>
</TR>
% }
</TABLE>
<& /Elements/TitleBoxEnd &>
<& /Elements/Submit, Caption => "Be sure to save your changes", Reset => 1 &>
</FORM>
<%INIT>
#Update the acls.
my @results = ProcessACLChanges(\@CheckACL, \%ARGS);
# {{{ Deal with setting up the display of current rights.
# {{{ do basic initialization.
#Define vars used in html above
my ($GroupObj);
my ($right);
if (!defined $id) {
Abort("No Queue defined");
}
my $QueueObj = new RT::Queue($session{'CurrentUser'});
$QueueObj->Load($id) ||
Abort("Couldn't load queue $id");
# Find out which users we want to display ACL selects for
my $Users = new RT::Users($session{'CurrentUser'});
$Users->LimitToPrivileged();
# }}}
# }}}
</%INIT>
<%ARGS>
$id => undef
$UserString => undef
$UserOp => undef
$UserField => undef
@CheckACL => undef
</%ARGS>
|