Skip to content

Commit

Permalink
Update Group.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milewski committed Feb 4, 2022
1 parent bc27a7f commit 895b5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 10,7 @@ class Group extends TopLevelResource

public function authorizedToSee(Request $request)
{
$authorized = collect($this->resources())->some(function (string $resource) use ($request) {
$authorized = collect($this->resources())->some(function (AbstractResource|string $resource) use ($request) {
return $this->parseResource($resource)->authorizedToSee($request);
});

Expand Down

0 comments on commit 895b5f4

Please sign in to comment.