From f71fd106f0e2b76412511efdf712c07c286b5032 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 14 Sep 2014 18:30:15 +0200 Subject: [PATCH] Fixed privilege checks for changing avatars --- src/Controllers/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/UserController.php b/src/Controllers/UserController.php index caa65b7a..e3e9ff38 100644 --- a/src/Controllers/UserController.php +++ b/src/Controllers/UserController.php @@ -68,7 +68,7 @@ final class UserController extends AbstractController $user = $this->userService->getByNameOrEmail($userNameOrEmail); $formData = new \Szurubooru\FormData\UserEditFormData($this->inputReader); - if ($formData->avatarStyle !== null) + if ($formData->avatarStyle !== null || $formData->avatarContent !== null) { $this->privilegeService->assertPrivilege( $this->privilegeService->isLoggedIn($userNameOrEmail)