From e4c71fb3e4986c697caab0c2343bc4eec124e21c Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 30 Apr 2021 14:25:28 +0300 Subject: [PATCH] acl fix --- application/Espo/Core/AclManager.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;