Skip to content

Commit 766bca9

Browse files
committed
Make hasPermissionViaRole method public in HasPermissions trait
1 parent cc264a1 commit 766bca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/HasPermissions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function hasAllPermissions(...$permissions): bool
305305
/**
306306
* Determine if the model has, via roles, the given permission.
307307
*/
308-
protected function hasPermissionViaRole(Permission $permission): bool
308+
public function hasPermissionViaRole(Permission $permission): bool
309309
{
310310
if (is_a($this, Role::class)) {
311311
return false;

0 commit comments

Comments
 (0)