1
0

SecuritySetting.php 735 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\Settings\Activity;
  7. use OCP\Activity\ISetting;
  8. use OCP\IL10N;
  9. class SecuritySetting implements ISetting {
  10. public function __construct(
  11. private IL10N $l10n,
  12. ) {
  13. }
  14. public function canChangeMail() {
  15. return false;
  16. }
  17. public function canChangeStream() {
  18. return false;
  19. }
  20. public function getIdentifier() {
  21. return 'security';
  22. }
  23. public function getName() {
  24. return $this->l10n->t('Security');
  25. }
  26. public function getPriority() {
  27. return 30;
  28. }
  29. public function isDefaultEnabledMail() {
  30. return true;
  31. }
  32. public function isDefaultEnabledStream() {
  33. return true;
  34. }
  35. }