Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix groups when creating user from inside subgroup (fix #269)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Aug 27, 2013
1 parent 97eb8f9 commit 8c513b7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -647,7 +647,7 @@ function switchAction($action, $httpVars, $fileVars){
$basePath = AuthService::getLoggedUser()->getGroupPath();
if(empty ($basePath)) $basePath = "/";
if(!empty($httpVars["group_path"])){
$newUser->setGroupPath($basePath.ltrim($httpVars["group_path"], "/"));
$newUser->setGroupPath(rtrim($basePath, "/")."/".ltrim($httpVars["group_path"], "/"));
}else{
$newUser->setGroupPath($basePath);
}
Expand Down

0 comments on commit 8c513b7

Please sign in to comment.