2016-12-13 04:30:08 -05:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2016-12-13 04:30:08 -05:00
|
|
|
/**
|
2024-06-03 04:23:34 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-12-13 04:30:08 -05:00
|
|
|
*/
|
2019-09-17 10:33:27 -04:00
|
|
|
namespace OCA\Settings\Activity;
|
2016-12-13 04:30:08 -05:00
|
|
|
|
|
|
|
|
use OCP\Activity\ISetting;
|
|
|
|
|
use OCP\IL10N;
|
|
|
|
|
|
2017-05-16 03:37:21 -04:00
|
|
|
class SecuritySetting implements ISetting {
|
2016-12-13 04:30:08 -05:00
|
|
|
|
2024-10-18 06:04:22 -04:00
|
|
|
public function __construct(
|
|
|
|
|
private IL10N $l10n,
|
|
|
|
|
) {
|
2016-12-13 04:30:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function canChangeMail() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function canChangeStream() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getIdentifier() {
|
2017-05-16 03:37:21 -04:00
|
|
|
return 'security';
|
2016-12-13 04:30:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getName() {
|
2017-05-16 03:37:21 -04:00
|
|
|
return $this->l10n->t('Security');
|
2016-12-13 04:30:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getPriority() {
|
|
|
|
|
return 30;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function isDefaultEnabledMail() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function isDefaultEnabledStream() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|