From 190a7d81155bc08fd9533f53f1f2154e2cca2c7a Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 1 May 2016 00:45:37 -0400 Subject: Update setting modal to allow admins to remove other users' head images --- app/model/common.mod.php | 10 ++++++++++ app/view/common/setting.modal.view.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/model/common.mod.php b/app/model/common.mod.php index 32bdb44..7630dfa 100644 --- a/app/model/common.mod.php +++ b/app/model/common.mod.php @@ -239,6 +239,16 @@ class CommonModel extends MasterModel return; } + if (isset($input['rmImage'])) + { + if ($user->rmHeadImage()) + $this->logNotice("Image removed"); + else + $this->logError("Error removing user image"); + + return; + } + if ($form->setPasswd) { if ($form->newPasswd == $form->confPasswd) diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php index 60063cf..e43f723 100644 --- a/app/view/common/setting.modal.view.php +++ b/app/view/common/setting.modal.view.php @@ -245,7 +245,7 @@ Upload new image
- -- cgit v1.2.3