mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Comment code path
This commit is contained in:
parent
202f1215aa
commit
dced436a3a
1 changed files with 1 additions and 0 deletions
|
|
@ -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 = '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue