Fixed privilege checks for changing avatars
This commit is contained in:
parent
20b3dfc76d
commit
f71fd106f0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue