@@ -161,10 +161,10 @@ function zmiModalInsertUserOpen(context) {
+ tal:define="editUser python:request.get('id') not in here.getRootElement().getSecurityRoles();
+ editRole python:not editUser;
+ action python: editUser and 'manage_userProperties' or 'manage_roleProperties';
+ multilang python:editUser and len(here.getLangIds())>1">
@@ -302,17 +302,17 @@ function zmiModalInsertUserOpen(context) {
-
-
+ tal:define="
+ security_roles python:here.getRootElement().getSecurityRoles().get(request['id'],{});
+ nodes python:list(security_roles.get('nodes',{}));
+ security_users python:here.getConfProperty('ZMS.security.users',{}).values();
+ is_deletable python:len(list(nodes))==0 and not len([x for x in security_users if len([y for y in x.get('nodes',{}).values() if request['id'] in y['roles']])>0])>0">
+
+
@@ -340,22 +340,22 @@ function zmiModalInsertUserOpen(context) {
@@ -471,18 +471,22 @@ function zmiModalInsertUserOpen(context) {
-
-
+
+
+
+
+
-
-
-
-
+
-
-
-
+
+
+
+
+
+
+
@@ -491,14 +495,14 @@ function zmiModalInsertUserOpen(context) {
userNames python:[x for x in userNames if not securityUsers[x].get('nodes',{})] if request.get('show_filter',False) else userNames;">