diff --git a/application/Espo/Core/AclManager.php b/application/Espo/Core/AclManager.php index 5f7f739f63..b0a6fe0c85 100644 --- a/application/Espo/Core/AclManager.php +++ b/application/Espo/Core/AclManager.php @@ -166,7 +166,7 @@ class AclManager return true; } $data = $this->getTable($user)->getScopeData($entity->getEntityType()); - return $this->getImplementation($scope)->checkEntity($user, $entity, $data, $action); + return $this->getImplementation($entity->getEntityType())->checkEntity($user, $entity, $data, $action); } public function checkScope(User $user, $scope, $action = null, $isOwner = null, $inTeam = null, $entity = null)