mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove the ability for the average user to add/delete groups on user edit page
If they have any delegations at all (are in editors group) they will have these links. 433387
This commit is contained in:
@@ -814,7 +814,7 @@ from ipagui.helpers import ipahelper
|
|||||||
<h2 class="formsection">Groups</h2>
|
<h2 class="formsection">Groups</h2>
|
||||||
|
|
||||||
<div class="floatlist">
|
<div class="floatlist">
|
||||||
<div class="floatheader">To Remove:</div>
|
<div py:if="'editors' in tg.identity.groups or 'admins' in tg.identity.groups or tg.identity.display_name != value.get('uid')" class="floatheader">To Remove:</div>
|
||||||
<div id="delmembers">
|
<div id="delmembers">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -841,7 +841,7 @@ from ipagui.helpers import ipahelper
|
|||||||
'${group_descr_esc}',
|
'${group_descr_esc}',
|
||||||
'${group_type_esc}'));
|
'${group_type_esc}'));
|
||||||
</script>
|
</script>
|
||||||
<a href="#"
|
<a py:if="'editors' in tg.identity.groups or 'admins' in tg.identity.groups or tg.identity.display_name != value.get('uid')" href="#"
|
||||||
onclick="removememberHandler(this, '${group_dn_esc}',
|
onclick="removememberHandler(this, '${group_dn_esc}',
|
||||||
new MemberDisplayInfo('${group_name_esc}',
|
new MemberDisplayInfo('${group_name_esc}',
|
||||||
'${group_descr_esc}',
|
'${group_descr_esc}',
|
||||||
@@ -861,7 +861,7 @@ from ipagui.helpers import ipahelper
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="clear:both">
|
<div py:if="'editors' in tg.identity.groups or 'admins' in tg.identity.groups or tg.identity.display_name != value.get('uid')" style="clear:both">
|
||||||
<h2 class="formsection">Add Groups</h2>
|
<h2 class="formsection">Add Groups</h2>
|
||||||
|
|
||||||
<div class="floatlist">
|
<div class="floatlist">
|
||||||
|
|||||||
Reference in New Issue
Block a user