Introduce ROLE_USER_ADMIN and ROLE_GROUP_ADMIN
[lgpl/argeo-commons.git] / org.argeo.security.ui / plugin.xml
index 24fb40a44df7a6bcaa709c975955a737398703fc..7d18541af3589eeaee7f194791e3ce4316997c22 100644 (file)
                    </with>
                  </enabledWhen>
         </activity>
+        <activity
+              description="User Admins"
+              id="org.argeo.security.ui.userAdminActivity"
+              name="User Admin">
+                 <enabledWhen>
+                   <with variable="roles">
+                     <iterate ifEmpty="false" operator="or">
+                       <equals value="ROLE_USER_ADMIN" />
+                     </iterate>
+                   </with>
+                 </enabledWhen>
+        </activity>
+        <activity
+              description="Group Admins"
+              id="org.argeo.security.ui.groupAdminActivity"
+              name="User Admin">
+                 <enabledWhen>
+                   <with variable="roles">
+                     <iterate ifEmpty="false" operator="or">
+                       <equals value="ROLE_GROUP_ADMIN" />
+                     </iterate>
+                   </with>
+                 </enabledWhen>
+        </activity>
         <activity
               description="Non admins"
               id="org.argeo.security.ui.notAdminActivity"