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 12, 2023
1 parent 0eea568 commit 8d96c45
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 8d96c45

Please sign in to comment.