This commit is contained in:
Yurii
2026-05-13 19:58:49 +03:00
parent 7f901a5fc2
commit 443ab8df7c
2 changed files with 2 additions and 5 deletions

View File

@@ -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();
}

View File

@@ -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();
}