Skip to content

Commit

Permalink
fix: method name conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Mar 15, 2023
1 parent 3dbbfa1 commit 14e766b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Traits/HasDocAccessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function hasDocAccess(): bool
if ($this->docsAreProtected()) {
$user = Auth::user();

return $this->userExists($user) && $this->hasAccess($user);
return $this->userExists($user) && $this->isAuthorized($user);
}

return true;
Expand All @@ -32,7 +32,7 @@ private function userExists($user): bool
return !is_null($user);
}

private function hasAccess(UserModel $user): bool
private function isAuthorized(UserModel $user): bool
{
return $this->hasRolesWithAccess($user) || $this->hasPermission($user);
}
Expand Down

0 comments on commit 14e766b

Please sign in to comment.