diff --git a/application/Espo/Core/AclManager.php b/application/Espo/Core/AclManager.php index f1c1004a15..40d086eaba 100644 --- a/application/Espo/Core/AclManager.php +++ b/application/Espo/Core/AclManager.php @@ -283,7 +283,7 @@ class AclManager { $scope = $entity->getEntityType(); - if (!$this->checkScope($user, $scope)) { + if (!$this->checkScope($user, $scope, $action)) { return false; } @@ -291,10 +291,6 @@ class AclManager $checker = $this->getAccessChecker($scope); - if (!$action) { - $action = Table::ACTION_READ; - } - $methodName = 'checkEntity' . ucfirst($action); $interface = $this->entityActionInterfaceMap[$action] ?? null;