Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions lib/Settings/AdminSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
namespace OCA\ServerInfo\Settings;

use OCP\AppFramework\Http\TemplateResponse;
use OCP\Settings\ISettings;
use OCP\Settings\IDelegatedSettings;
use OCP\Util;

class AdminSettings implements ISettings {
/**
* Read-only System monitoring page — exposable via Admin delegation
* (same pattern as logreader).
*/
class AdminSettings implements IDelegatedSettings {
#[\Override]
public function getForm(): TemplateResponse {
Util::addScript('serverinfo', 'serverinfo-main');
Expand Down Expand Up @@ -41,4 +45,15 @@ public function getSection(): string {
public function getPriority(): int {
return 0;
}

#[\Override]
public function getName(): ?string {
return null; // Only setting in this section
}

#[\Override]
public function getAuthorizedAppConfig(): array {
// Page is read-only; no appconfig writes to authorize.
return [];
}
}