Skip to content

Commit cc7fb07

Browse files
committed
refs orchidsoftware#3035 Fixed argument type
1 parent fb44463 commit cc7fb07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Access/UserAccess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function roles(): BelongsToMany
4444
*/
4545
public function inRole($role): bool
4646
{
47-
$role = Arr::first($this->roles, static function ($instance) use ($role) {
47+
$role = Arr::first($this->roles->all(), static function ($instance) use ($role) {
4848
if ($role instanceof RoleInterface) {
4949
return $instance->getRoleId() === $role->getRoleId();
5050
}

src/Platform/Dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Dashboard
2323
*
2424
* @deprecated Use `Dashboard::version()` instead.
2525
*/
26-
public const VERSION = '14.52.3';
26+
public const VERSION = '14.52.4';
2727

2828
/**
2929
* @deprecated

0 commit comments

Comments
 (0)