Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Witold Wiśniewski committed Sep 20, 2023
1 parent 9a28db5 commit 9441aaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Policies/WebHookPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ private function canChange(App|User $user, WebHook $webHook, string $method): Re
? Response::allow()
: throw new ClientException(Exceptions::CLIENT_WEBHOOK_APP_ACTION, errorArray: ['method' => $method]);
}

// Webhook stworzony przez użytkownika
return $user instanceof User
? Response::allow()
Expand Down
2 changes: 1 addition & 1 deletion app/Services/UserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function selfUpdateRoles(User $user, SelfUpdateRoles $dto): User
}
}

// @phpstan-ignore-next-line
/** @phpstan-ignore-next-line */
$roleModels = $roleModels->merge($user->roles->filter(fn (Role $role): bool => !$role->is_joinable));

$user->syncRoles($roleModels);
Expand Down

0 comments on commit 9441aaa

Please sign in to comment.