diff --git a/src/Repositories/Eloquent/ACLRepository.php b/src/Repositories/Eloquent/ACLRepository.php index c623c7e..d3c0fc2 100644 --- a/src/Repositories/Eloquent/ACLRepository.php +++ b/src/Repositories/Eloquent/ACLRepository.php @@ -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; }