We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc264a1 commit 766bca9Copy full SHA for 766bca9
src/Traits/HasPermissions.php
@@ -305,7 +305,7 @@ public function hasAllPermissions(...$permissions): bool
305
/**
306
* Determine if the model has, via roles, the given permission.
307
*/
308
- protected function hasPermissionViaRole(Permission $permission): bool
+ public function hasPermissionViaRole(Permission $permission): bool
309
{
310
if (is_a($this, Role::class)) {
311
return false;
0 commit comments