Fix# mailservice: admin notif email link for owncloud
This commit is contained in:
parent
d580d6ca5f
commit
7d322d0857
|
|
@ -147,8 +147,11 @@ class MailService {
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
private function sendNewUserNotifEmail(array $to, $username, $userIsEnabled) {
|
private function sendNewUserNotifEmail(array $to, $username, $userIsEnabled) {
|
||||||
$link = $this->urlGenerator->linkToRouteAbsolute('settings.Users.usersList');
|
if ( $this->config->getAppValue('core', 'vendor', '') === 'nextcloud' ) {
|
||||||
// TODO: for owncloud, route name should be user_management.users https://github.com/owncloud/user_management/blob/master/appinfo/routes.php#L30
|
$link = $this->urlGenerator->linkToRouteAbsolute('settings.Users.usersList');
|
||||||
|
} else {
|
||||||
|
$link = $this->urlGenerator->linkToRouteAbsolute('user_management.users');
|
||||||
|
}
|
||||||
$template_var = [
|
$template_var = [
|
||||||
'user' => $username,
|
'user' => $username,
|
||||||
'sitename' => $this->defaults->getName(),
|
'sitename' => $this->defaults->getName(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue