Skip to content

Commit

Permalink
Update ACLRepository.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbmaulana authored Oct 14, 2024
1 parent 14ab5be commit b765e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repositories/Eloquent/ACLRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function owns($resource = "*", $target = "*")

if ($resource != "*") $acls = $acls->where("type", OwnScope::space(app($resource)));

if ($target != "*") $acls = $acls->where("id", $target);
if ($target != "*") $acls = $acls->where("id", $target)->first();

return $acls;
}
Expand Down

0 comments on commit b765e7a

Please sign in to comment.