mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Only show Delete button for admins, editors and don't let user delete them self
Resolves 433382
This commit is contained in:
parent
80a4e94e5b
commit
7e5f1514b2
@ -30,7 +30,8 @@
|
||||
value="Update User"/>
|
||||
<input type="submit" class="submitbutton" name="submit"
|
||||
value="Cancel Edit" />
|
||||
<input type="button" class="submitbutton"
|
||||
<input py:if="'editors' in tg.identity.groups or 'admins' in tg.identity.groups and tg.identity.display_name != value.get('uid')"
|
||||
type="button" class="submitbutton"
|
||||
value="Delete User"
|
||||
onclick="return confirmDelete();"
|
||||
/>
|
||||
@ -885,7 +886,8 @@ from ipagui.helpers import ipahelper
|
||||
value="Update User"/>
|
||||
<input type="submit" class="submitbutton" name="submit"
|
||||
value="Cancel Edit" />
|
||||
<input type="button" class="submitbutton"
|
||||
<input py:if="'editors' in tg.identity.groups or 'admins' in tg.identity.groups and tg.identity.display_name != value.get('uid')"
|
||||
type="button" class="submitbutton"
|
||||
value="Delete User"
|
||||
onclick="return confirmDelete();"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user