Fixed privilege checks for changing avatars

This commit is contained in:
Marcin Kurczewski 2014-09-14 18:30:15 +02:00
parent 20b3dfc76d
commit f71fd106f0

View file

@ -68,7 +68,7 @@ final class UserController extends AbstractController
$user = $this->userService->getByNameOrEmail($userNameOrEmail); $user = $this->userService->getByNameOrEmail($userNameOrEmail);
$formData = new \Szurubooru\FormData\UserEditFormData($this->inputReader); $formData = new \Szurubooru\FormData\UserEditFormData($this->inputReader);
if ($formData->avatarStyle !== null) if ($formData->avatarStyle !== null || $formData->avatarContent !== null)
{ {
$this->privilegeService->assertPrivilege( $this->privilegeService->assertPrivilege(
$this->privilegeService->isLoggedIn($userNameOrEmail) $this->privilegeService->isLoggedIn($userNameOrEmail)