Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Apr 15, 2022
1 parent 30fcbca commit 8807c0b
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ public function rules(): array

public function authorize(): bool
{
// is this an admin who has access to permission `update-users`
// or the user is updating his own object (is the owner).

return $this->check([
'hasAccess|isResourceOwner',
]);
Expand Down

0 comments on commit 8807c0b

Please sign in to comment.