Permalink
Browse files

Fix wrong groupPath setting

  • Loading branch information...
1 parent 8da4842 commit 9b2f6fd1f9904e337e4d50a205ffc16e946cadb9 @cdujeu cdujeu committed Sep 3, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/core/src/pydio/Core/Services/RolesService.php
@@ -123,12 +123,12 @@ public static function getRole($roleId)
* @param string $groupPath GroupPath to be applied
* @return AJXP_Role
*/
- public static function getOrCreateRole($roleId, $groupPath)
+ public static function getOrCreateRole($roleId, $groupPath = "/")
{
$roles = self::getRolesList(array($roleId));
if (isSet($roles[$roleId])) return $roles[$roleId];
$role = new AJXP_Role($roleId);
- $role->setGroupPath("/");
+ $role->setGroupPath($groupPath);
self::updateRole($role);
return $role;
}

0 comments on commit 9b2f6fd

Please sign in to comment.