From 07a11e2a8fc290cabb74448248e3084039290d03 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Fri, 12 Feb 2016 22:45:00 +0100 Subject: [PATCH] prepend default group this makes sure manually assigned groups win on systems where only one group is supported. --- lib/plugins/authpdo/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/authpdo/auth.php b/lib/plugins/authpdo/auth.php index 8e55e8092..2139934bb 100644 --- a/lib/plugins/authpdo/auth.php +++ b/lib/plugins/authpdo/auth.php @@ -217,7 +217,7 @@ class auth_plugin_authpdo extends DokuWiki_Auth_Plugin { // prepare data if($grps == null) $grps = array(); - $grps[] = $conf['defaultgroup']; + array_unshift($grps, $conf['defaultgroup']); $grps = array_unique($grps); $hash = auth_cryptPassword($clear); $userdata = compact('user', 'clear', 'hash', 'name', 'mail'); -- GitLab