Let avatarUrl attribute delete the avatar as well

This commit is contained in:
Toby Zerner 2017-10-07 20:28:15 +10:30
parent 8108c2f1eb
commit 51510319c1

View File

@ -168,6 +168,8 @@ class EditUserHandler
} catch (Exception $e) {
//
}
} elseif (array_key_exists('avatarUrl', $attributes)) {
$this->avatarUploader->remove($user);
}
$this->events->fire(