X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fhtml%2FAdmin%2FElements%2FSelectRights;h=a0a5736f0a5471636b05bce05a49496d904bd53e;hp=3e61d507137330f2b013d022f9de2854637a2677;hb=ef20b2b6b1feb47ad02b5ff7525f1a0fd11d0fa4;hpb=a513c0bef534d05f03c1242831b6f3be19b97dae diff --git a/rt/html/Admin/Elements/SelectRights b/rt/html/Admin/Elements/SelectRights index 3e61d5071..a0a5736f0 100644 --- a/rt/html/Admin/Elements/SelectRights +++ b/rt/html/Admin/Elements/SelectRights @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,7 +22,9 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +%# 02110-1301 or visit their web page on the internet at +%# http://www.gnu.org/copyleft/gpl.html. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -43,37 +45,37 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} - - - - + +
+ + + + - + - -
% my %current_rights;

<&|/l&>Current rights

% if ($ACLObj->Count() == 0) { -<&|/l&>No rights granted.
+<&|/l&>No rights granted.
% } else { -(<&|/l&>Check box to revoke right)
+(<&|/l&>Check box to revoke right)
% while (my $right = $ACLObj->Next()) { % if ($right->RightName) { % $current_rights{$right->RightName} = 1; - <% loc($right->RightName) %>
+ <% loc($right->RightName) %>
% } % } % } -
+

<&|/l&>New rights

- % foreach $right (sort keys %Rights) { % next if $current_rights{$right}; - + % } - - -
+ + +
<%INIT> my ($right, $ACLDesc, $AppliesTo, %Rights);