Skip to content
This repository was archived by the owner on Aug 20, 2023. It is now read-only.

Commit f9367f9

Browse files
updated PermissionTrait
1 parent 3aeda74 commit f9367f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Traits/PermissionTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ public function setPermission(...$permissions)
5656
*/
5757
private function hasThisPermission($permission): bool
5858
{
59-
return (bool)$this->permissions->where('slug', $permission)->count();
59+
return !$this->permissions->where('slug', $permission)->isEmpty();
6060
}
6161

62-
/**
62+
/**
6363
* @param array $permissions
6464
* @access private
6565
*

0 commit comments

Comments
 (0)