summaryrefslogtreecommitdiff
path: root/rt/webrt/Admin/Global/GroupRights.html
blob: 26b7e1fe21b4a2199423621ba4843919951667c0 (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
73
74
75
76
77
78
<& /Admin/Elements/Header, Title => 'Modify System ACLS' &>
<& /Admin/Elements/SystemTabs &>
  
<& /Elements/ListActions, actions => \@results &>
  <FORM METHOD=POST action="GroupRights.html">
      


<h2>Modify global rights for groups</h2>

<TABLE>
<TR><TD>Pseudogroups</TD></TR>
% while (my $GroupObj = $PseudoGroups->Next()) {
	      
	      <TR ALIGN=RIGHT> 
		<TD VALIGN=TOP>
		  <% $GroupObj->Name %>
		</TD>
		<TD>
	    <& /Admin/Elements/SelectRights, PrincipalObj => $GroupObj, 
                                   PrincipalType => 'Group',
                                   Scope => 'System' &>
		</TD>
	      </TR>
	
% }

<TR><TD>Groups</TD></TR>

% while (my $GroupObj = $Groups->Next()) {
	      
	      <TR ALIGN=RIGHT> 
		<TD VALIGN=TOP>
		  <% $GroupObj->Name %>
		</TD>
		<TD>
	    <& /Admin/Elements/SelectRights, PrincipalObj => $GroupObj, 
                                   PrincipalType => 'Group',
                                   Scope => 'System' &>
		</TD>
	      </TR>
	
% }
	
      </TABLE>
    <& /Elements/Submit, Caption => "Be sure to save your changes", Reset => 1 &>
  </FORM>
  
  <%INIT>
 
   #Update the acls.
 my @results =  ProcessACLChanges(\@CheckACL, \%ARGS);

        
    # {{{ do basic initialization.
    
  
  
  # Find out which groups we want to display ACL selects for.
  my $Groups = new RT::Groups($session{'CurrentUser'});
  #TODO: limit this to non-pseudogroups
  $Groups->LimitToReal();


  my $PseudoGroups = new RT::Groups($session{'CurrentUser'});
  #TODO: limit this to non-pseudogroups
  $PseudoGroups->LimitToPseudo;

  # }}}
    
  

  
  </%INIT>

<%ARGS>
@CheckACL => undef
</%ARGS>