This commit is contained in:
Yuri Kuznetsov
2021-04-30 14:25:28 +03:00
parent 44e947ac8a
commit e4c71fb3e4

View File

@@ -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;