diff --git a/Changelog b/Changelog index f3049c7dc..681aa93a6 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-02-01 DariusIII + * Chg: Do not allow admins to delete their profiles from profile page * Chg: Add check for users when deleting profile so they do not delete another users profile * Chg: Remove occurences of ROLE_GUEST as that role is removed 2018-01-31 DariusIII diff --git a/public/themes/Charisma/profile.tpl b/public/themes/Charisma/profile.tpl index 154b2b249..5018cc0a7 100755 --- a/public/themes/Charisma/profile.tpl +++ b/public/themes/Charisma/profile.tpl @@ -243,7 +243,9 @@ Edit Profile {/if} - Delete your account + {if !isset($isadmin)} + Delete your account + {/if} diff --git a/public/themes/Gamma/profile.tpl b/public/themes/Gamma/profile.tpl index 737b12246..c766c5987 100755 --- a/public/themes/Gamma/profile.tpl +++ b/public/themes/Gamma/profile.tpl @@ -1,10 +1,12 @@