mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(admin): use correct delegation class
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
3961a8be67
commit
aaab13c7ca
1 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
namespace OCA\Settings\Controller;
|
||||
|
||||
use OCA\Settings\Settings\Admin\Overview;
|
||||
use OCA\Settings\Settings\Admin\Mail;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http;
|
||||
use OCP\AppFramework\Http\Attribute\AuthorizedAdminSetting;
|
||||
|
|
@ -48,7 +48,7 @@ class MailSettingsController extends Controller {
|
|||
/**
|
||||
* Sets the email settings
|
||||
*/
|
||||
#[AuthorizedAdminSetting(settings: Overview::class)]
|
||||
#[AuthorizedAdminSetting(settings: Mail::class)]
|
||||
#[PasswordConfirmationRequired]
|
||||
public function setMailSettings(
|
||||
string $mail_domain,
|
||||
|
|
@ -102,7 +102,7 @@ class MailSettingsController extends Controller {
|
|||
/**
|
||||
* Store the credentials used for SMTP in the config
|
||||
*/
|
||||
#[AuthorizedAdminSetting(settings: Overview::class)]
|
||||
#[AuthorizedAdminSetting(settings: Mail::class)]
|
||||
#[PasswordConfirmationRequired]
|
||||
public function storeCredentials(string $mail_smtpname, ?string $mail_smtppassword): DataResponse {
|
||||
if ($mail_smtppassword === '********') {
|
||||
|
|
@ -122,7 +122,7 @@ class MailSettingsController extends Controller {
|
|||
* Send a mail to test the settings
|
||||
* @return DataResponse
|
||||
*/
|
||||
#[AuthorizedAdminSetting(settings: Overview::class)]
|
||||
#[AuthorizedAdminSetting(settings: Mail::class)]
|
||||
public function sendTestMail() {
|
||||
$email = $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'email', '');
|
||||
if (!empty($email)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue