diff options
author | Malf Furious <m@lfurio.us> | 2016-05-01 00:45:37 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-05-01 01:34:23 -0400 |
commit | 190a7d81155bc08fd9533f53f1f2154e2cca2c7a (patch) | |
tree | 15c5966fc65b1f75092eeb37331d6b6881b83af6 /app/model/common.mod.php | |
parent | e9189928e1108d0c1330eb47cc5de20d67f5de51 (diff) | |
download | scrott-190a7d81155bc08fd9533f53f1f2154e2cca2c7a.tar.gz scrott-190a7d81155bc08fd9533f53f1f2154e2cca2c7a.zip |
Update setting modal to allow admins to remove other users' head images
Diffstat (limited to '')
-rw-r--r-- | app/model/common.mod.php | 10 |
1 files changed, 10 insertions, 0 deletions
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) |