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 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/model/common.mod.php') 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) -- cgit v1.2.3