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 fb44463 commit cc7fb07Copy full SHA for cc7fb07
src/Access/UserAccess.php
@@ -44,7 +44,7 @@ public function roles(): BelongsToMany
44
*/
45
public function inRole($role): bool
46
{
47
- $role = Arr::first($this->roles, static function ($instance) use ($role) {
+ $role = Arr::first($this->roles->all(), static function ($instance) use ($role) {
48
if ($role instanceof RoleInterface) {
49
return $instance->getRoleId() === $role->getRoleId();
50
}
src/Platform/Dashboard.php
@@ -23,7 +23,7 @@ class Dashboard
23
*
24
* @deprecated Use `Dashboard::version()` instead.
25
26
- public const VERSION = '14.52.3';
+ public const VERSION = '14.52.4';
27
28
/**
29
* @deprecated
0 commit comments