Skip to content

Commit

Permalink
Corrected check permission for change password
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszdebinski committed Dec 29, 2023
1 parent a039b32 commit 6a66ef3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bundle/Controller/UserSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ public function __construct(
public function listAction(int $page = 1): ListView
{
$user = $this->getUser()->getAPIUser();
$canChangePassword = $this->permissionResolver->canUser('content', 'edit', $user)
&& $this->permissionResolver->canUser('user', 'password', $user);
$canChangePassword = $this->permissionResolver->canUser('user', 'password', $user);

return new ListView(null, [
'grouped_settings' => $this->userSettingService->loadGroupedUserSettings(),
Expand Down

0 comments on commit 6a66ef3

Please sign in to comment.