From bdef469b2276bc9d84975a7068dbed2aa2f2d7ae Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 1 Feb 2018 11:11:01 +0100 Subject: [PATCH] Do not allow admins to delete their profiles from profile page --- Changelog | 1 + public/themes/Charisma/profile.tpl | 4 +++- public/themes/Gamma/profile.tpl | 6 ++++-- public/themes/Gentele/profile.tpl | 4 +++- public/themes/Omicron/profile.tpl | 4 +++- 5 files changed, 14 insertions(+), 5 deletions(-) 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 @@
diff --git a/public/themes/Gentele/profile.tpl b/public/themes/Gentele/profile.tpl index 69317873a..7c4789232 100755 --- a/public/themes/Gentele/profile.tpl +++ b/public/themes/Gentele/profile.tpl @@ -251,7 +251,9 @@ Edit Profile {/if} - Delete your account + {if !isset($isadmin)} + Delete your account + {/if} diff --git a/public/themes/Omicron/profile.tpl b/public/themes/Omicron/profile.tpl index 970bb099f..917216ffd 100755 --- a/public/themes/Omicron/profile.tpl +++ b/public/themes/Omicron/profile.tpl @@ -243,7 +243,9 @@ Edit Profile {/if} - Delete your account + {if !isset($isadmin)} + Delete your account + {/if}