From dced436a3a435bf892d2d610caaac5895b6e16ba Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 12 Dec 2014 16:45:11 +0100 Subject: [PATCH] Comment code path --- settings/controller/userscontroller.php | 1 + 1 file changed, 1 insertion(+) 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 = ''; } -- 2.39.5