diff --git a/application/Espo/Core/Acl.php b/application/Espo/Core/Acl.php index 8ba7dc78e9..c03031386a 100644 --- a/application/Espo/Core/Acl.php +++ b/application/Espo/Core/Acl.php @@ -60,6 +60,7 @@ class Acl * Get an access level for a specific scope and action. * * @param Table::ACTION_* $action + * @noinspection PhpDocSignatureInspection */ public function getLevel(string $scope, string $action): string { @@ -158,6 +159,7 @@ class Acl */ public function checkEntityRead(Entity $entity): bool { + /** @noinspection PhpRedundantOptionalArgumentInspection */ return $this->checkEntity($entity, Table::ACTION_READ); } @@ -215,6 +217,7 @@ class Acl * @param Table::ACTION_READ|Table::ACTION_EDIT $action An action. * @param string $thresholdLevel Should not be used. Stands for possible future enhancements. * @return string[] + * @noinspection PhpDocSignatureInspection */ public function getScopeForbiddenAttributeList( string $scope, @@ -232,6 +235,7 @@ class Acl * @param Table::ACTION_READ|Table::ACTION_EDIT $action An action. * @param string $thresholdLevel Should not be used. Stands for possible future enhancements. * @return string[] + * @noinspection PhpDocSignatureInspection */ public function getScopeForbiddenFieldList( string $scope, @@ -250,6 +254,7 @@ class Acl * @param string $field A field to check. * @param Table::ACTION_READ|Table::ACTION_EDIT $action An action. * @return bool + * @noinspection PhpDocSignatureInspection */ public function checkField(string $scope, string $field, string $action = Table::ACTION_READ): bool { @@ -262,6 +267,7 @@ class Acl * @param Table::ACTION_READ|Table::ACTION_EDIT $action An action. * @param string $thresholdLevel Should not be used. Stands for possible future enhancements. * @return string[] + * @noinspection PhpDocSignatureInspection */ public function getScopeForbiddenLinkList( string $scope, @@ -354,6 +360,7 @@ class Acl */ public function checkUser(string $permission, User $entity): bool { + /** @noinspection PhpDeprecationInspection */ return $this->aclManager->checkUser($this->user, $permission, $entity); } }