mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-29 23:46:10 +00:00
acl fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user