summaryrefslogtreecommitdiffstats
path: root/settings/controller
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-12 16:45:11 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-12 16:45:11 +0100
commitdced436a3a435bf892d2d610caaac5895b6e16ba (patch)
tree9410889432f84ec05ab1f8daa60837175fcc6117 /settings/controller
parent202f1215aa4752a7b5ce10d5ac6e9092a3e1531d (diff)
downloadnextcloud-server-dced436a3a435bf892d2d610caaac5895b6e16ba.tar.gz
nextcloud-server-dced436a3a435bf892d2d610caaac5895b6e16ba.zip
Comment code path
Diffstat (limited to 'settings/controller')
-rw-r--r--settings/controller/userscontroller.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/controller/userscontroller.php b/settings/controller/userscontroller.php
index bd0c859b18c..7f2449f2af6 100644
--- a/settings/controller/userscontroller.php
+++ b/settings/controller/userscontroller.php
@@ -141,6 +141,7 @@ class UsersController extends Controller {
}
} else {
+ // Set the $gid parameter to an empty value if the subadmin has no rights to access a specific group
if($gid !== '' && !in_array($gid, \OC_SubAdmin::getSubAdminsGroups($this->userSession->getUser()->getUID()))) {
$gid = '';
}