diff --git a/application/Espo/Resources/metadata/entityAcl/Integration.json b/application/Espo/Resources/metadata/entityAcl/Integration.json deleted file mode 100644 index 37ec774945..0000000000 --- a/application/Espo/Resources/metadata/entityAcl/Integration.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "languageAclDisabled": true -} diff --git a/application/Espo/Resources/metadata/scopes/Integration.json b/application/Espo/Resources/metadata/scopes/Integration.json index 432d5091d0..63507380c8 100644 --- a/application/Espo/Resources/metadata/scopes/Integration.json +++ b/application/Espo/Resources/metadata/scopes/Integration.json @@ -1,7 +1,8 @@ { - "entity":true, - "layouts":false, - "tab":false, - "acl":false, - "customizable":false + "entity": true, + "layouts": false, + "tab": false, + "acl": false, + "customizable": false, + "languageAclDisabled": true } diff --git a/application/Espo/Tools/App/LanguageService.php b/application/Espo/Tools/App/LanguageService.php index 46ba9c877e..4ceeeaf461 100644 --- a/application/Espo/Tools/App/LanguageService.php +++ b/application/Espo/Tools/App/LanguageService.php @@ -125,7 +125,7 @@ class LanguageService continue; } - if ($this->metadata->get(['entityAcl', $scope, 'languageAclDisabled'])) { + if ($this->metadata->get(['scopes', $scope, 'languageAclDisabled'])) { continue; }