Merge branch 'fix'
This commit is contained in:
@@ -54,7 +54,8 @@ class Admin
|
||||
private Manager $adminNotificationManager,
|
||||
private SystemRequirements $systemRequirements,
|
||||
private ScheduledJob $scheduledJob,
|
||||
private DataManager $dataManager
|
||||
private DataManager $dataManager,
|
||||
private Config\SystemConfig $systemConfig,
|
||||
) {
|
||||
if (!$this->user->isAdmin()) {
|
||||
throw new Forbidden();
|
||||
@@ -179,9 +180,14 @@ class Admin
|
||||
* database: array<string, array<string, mixed>>,
|
||||
* permission: array<string, array<string, mixed>>,
|
||||
* }
|
||||
* @throws Forbidden
|
||||
*/
|
||||
public function getActionSystemRequirementList(): object
|
||||
{
|
||||
if (!$this->user->isSuperAdmin() && $this->systemConfig->isRestrictedMode()) {
|
||||
throw new Forbidden();
|
||||
}
|
||||
|
||||
return (object) $this->systemRequirements->getAllRequiredList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user