Index: authz-tool/tool/src/bundle/authz-tool.properties =================================================================== --- authz-tool/tool/src/bundle/authz-tool.properties (revision 63091) +++ authz-tool/tool/src/bundle/authz-tool.properties (working copy) @@ -21,6 +21,10 @@ per.lis = List of roles and permissions that can be applied to this folder. Layout: each row lists the permissions of a role. Layout: column 1 lists the roles, the other columns list the permissions, checkboxes permit enabling a permission for a role. per.rol = Role per.alert = Alert: no roles are defined. +per.lis.clearall=Clear all +per.lis.restoredef=Restore defaults +per.lis.selectgrp=Set permisions for +per.lis.site=Site java.alert.prbset = Permissions can not be set at this time because the site is already being edited. Close permissions in other tools before proceeding. Index: authz-tool/tool/src/webapp/vm/helper/chef_permissions.vm =================================================================== --- authz-tool/tool/src/webapp/vm/helper/chef_permissions.vm (revision 63091) +++ authz-tool/tool/src/webapp/vm/helper/chef_permissions.vm (working copy) @@ -1,5 +1,129 @@ ##
+ + + + + #if($menu) #toolbar($menu) #end @@ -12,10 +136,66 @@
$!description
+ +
#if ($!roles) - +
+ + #foreach($role in $roles) + + #end + + #foreach($lock in $abilities) + + + #set($roleCount=0) + #foreach($role in $roles) + #set($myRole = $realm.getRole($role.Id)) + #set($roleAbilities = $rolesAbilities.get($role.Id)) + #set($roleCount=$roleCount + 1) + + + #end + + #end +
+ Permission + $role.Id

$thelp.getString("desc-$lock")

+ #if ($!hiddenLock.indexOf($lock) != -1 || ($lock == "site.viewRoster" && !$!editViewRoster)) + ## don't show checkbox for those roles + #else + #if($roleAbilities.contains($lock)) + $thelp.getString( + #else + + #end + #end +
+ + + #* + @@ -47,6 +227,9 @@ #end
$thelp.getString("per.rol")
+*# + +