From cda60f8f7d1189e968d2cc3508492f11cc849222 Mon Sep 17 00:00:00 2001 From: claudiotam Date: Fri, 28 Nov 2025 11:55:45 +0000 Subject: [PATCH] singleservice check, disable oauth change and ui --- action/user.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action/user.php b/action/user.php index 639abfe..291ea14 100644 --- a/action/user.php +++ b/action/user.php @@ -62,11 +62,13 @@ public function handleUsermod(Event $event) { global $ACT; global $USERINFO; + /** @var auth_plugin_authplain $auth */ global $auth; global $INPUT; if ($event->data['type'] != 'modify') return; if ($ACT != 'profile') return; + if ($this->hlp->getConf('singleService')) return; // we want to modify the user's groups $groups = $USERINFO['grps']; //current groups @@ -108,6 +110,8 @@ public function handleOldProfileform(Event $event) /** @var auth_plugin_authplain $auth */ global $auth; + if ($this->hlp->getConf('singleService')) return; + /** @var Doku_Form $form */ $form = $event->data; $pos = $form->findElementByAttribute('type', 'submit'); @@ -151,6 +155,8 @@ public function handleProfileform(Event $event) /** @var auth_plugin_authplain $auth */ global $auth; + if ($this->hlp->getConf('singleService')) return; + /** @var Form $form */ $form = $event->data; $pos = $form->findPositionByAttribute('type', 'submit');