Skip to content

EspoCRM – Open Source CRM Application

No extension install in restricted mode

Yurii9c90b9ce72a4
diff --git a/application/Espo/Controllers/Extension.php b/application/Espo/Controllers/Extension.php
index 2c7b86b3f1..81e3fcde5f 100644
--- a/application/Espo/Controllers/Extension.php
+++ b/application/Espo/Controllers/Extension.php
@@ -83,7 +83,7 @@ class Extension extends RecordBase
{
$data = $request->getParsedBody();
- if ($this->config->get('restrictedMode') && !$this->user->isSuperAdmin()) {
+ if ($this->config->get('restrictedMode')) {
throw new Forbidden();
}
@@ -102,7 +102,7 @@ class Extension extends RecordBase
{
$data = $request->getParsedBody();
- if ($this->config->get('restrictedMode') && !$this->user->isSuperAdmin()) {
+ if ($this->config->get('restrictedMode')) {
throw new Forbidden();
}