Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions action/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down