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

Commit

Permalink
Fix wrong groupPath setting
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 3, 2016
1 parent 8da4842 commit 9b2f6fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/core/src/pydio/Core/Services/RolesService.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9b2f6fd

Please sign in to comment.