From 5eee319132e9552749d814853be6f4d549ab6090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20St=C3=BCckler?= Date: Tue, 7 Nov 2023 16:11:06 +0100 Subject: [PATCH] feat: groups placeholder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Moritz Stückler --- lib/SitesManager.php | 4 ++-- templates/settings.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/SitesManager.php b/lib/SitesManager.php index 4bfac895..4f6c7465 100644 --- a/lib/SitesManager.php +++ b/lib/SitesManager.php @@ -151,8 +151,8 @@ public function getSitesToDisplay() { } $site['url'] = str_replace( - ['{email}', '{uid}', '{displayname}', '{jwt}'], - array_map('rawurlencode', [$email, $uid, $displayName, $jwt]), + ['{email}', '{uid}', '{displayname}', '{jwt}', '{groups}'], + array_map('rawurlencode', [$email, $uid, $displayName, $jwt, implode(",", $groups)]), $site['url'] ); diff --git a/templates/settings.php b/templates/settings.php index 2f034a4f..d26016af 100644 --- a/templates/settings.php +++ b/templates/settings.php @@ -35,7 +35,7 @@

t('External sites'));?>

t('Add a website directly to the app list in the top bar. This will be visible for all users and is useful to quickly reach other internally used web apps or important sites.')); ?>

-

t('The placeholders {email}, {uid} and {displayname} can be used and are filled with the user´s values to customize the links.')); ?>

+

t('The placeholders {email}, {uid}, {displayname} and {groups} can be used and are filled with the user´s values to customize the links.')); ?>

t("When accessing the external site through the Nextcloud link, path parameters will be forwarded to the external site. So you can also create deep links (e.g. 'mycloud.com/external/1/pageA' will lead to Nextcloud with the iframe pointed at 'externalsite.com/pageA').")); ?>