mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Fix
This commit is contained in:
@@ -101,10 +101,7 @@ class Admin
|
||||
*/
|
||||
public function postActionUploadUpgradePackage(Request $request): object
|
||||
{
|
||||
if (
|
||||
$this->config->get('restrictedMode') &&
|
||||
!$this->user->isSuperAdmin()
|
||||
) {
|
||||
if ($this->config->get('restrictedMode')) {
|
||||
throw new Forbidden();
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class Extension extends RecordBase
|
||||
*/
|
||||
public function postActionUpload(Request $request): stdClass
|
||||
{
|
||||
if ($this->config->get('restrictedMode') && !$this->user->isSuperAdmin()) {
|
||||
if ($this->config->get('restrictedMode')) {
|
||||
throw new Forbidden();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user