77 */
88namespace OCA \Settings \Controller ;
99
10- use OCA \Settings \Settings \Admin \Overview ;
10+ use OCA \Settings \Settings \Admin \Mail ;
1111use OCP \AppFramework \Controller ;
1212use OCP \AppFramework \Http ;
1313use OCP \AppFramework \Http \Attribute \AuthorizedAdminSetting ;
@@ -48,7 +48,7 @@ public function __construct(
4848 /**
4949 * Sets the email settings
5050 */
51- #[AuthorizedAdminSetting(settings: Overview ::class)]
51+ #[AuthorizedAdminSetting(settings: Mail ::class)]
5252 #[PasswordConfirmationRequired]
5353 public function setMailSettings (
5454 string $ mail_domain ,
@@ -102,7 +102,7 @@ public function setMailSettings(
102102 /**
103103 * Store the credentials used for SMTP in the config
104104 */
105- #[AuthorizedAdminSetting(settings: Overview ::class)]
105+ #[AuthorizedAdminSetting(settings: Mail ::class)]
106106 #[PasswordConfirmationRequired]
107107 public function storeCredentials (string $ mail_smtpname , ?string $ mail_smtppassword ): DataResponse {
108108 if ($ mail_smtppassword === '******** ' ) {
@@ -122,7 +122,7 @@ public function storeCredentials(string $mail_smtpname, ?string $mail_smtppasswo
122122 * Send a mail to test the settings
123123 * @return DataResponse
124124 */
125- #[AuthorizedAdminSetting(settings: Overview ::class)]
125+ #[AuthorizedAdminSetting(settings: Mail ::class)]
126126 public function sendTestMail () {
127127 $ email = $ this ->config ->getUserValue ($ this ->userSession ->getUser ()->getUID (), $ this ->appName , 'email ' , '' );
128128 if (!empty ($ email )) {
0 commit comments