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

Commit

Permalink
Fix "share file with new user" case by adding the inbox repository acl.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Mar 11, 2016
1 parent a9c216d commit e48ab2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/plugins/action.share/class.ShareRightsManager.php
Expand Up @@ -415,6 +415,13 @@ public function assignSharedRepositoryPermissions($parentRepository, $childRepos
$userObject->addRole($minisiteRole);
}
}
// ADD "my shared files" REPO OTHERWISE SOME USER CANNOT ACCESS
if( !isSet($userEntry["HIDDEN"]) && $childRepository->hasContentFilter()){
$inboxRepo = ConfService::getRepositoryById("inbox");
if($inboxRepo !== null){
$userObject->personalRole->setAcl("inbox", "r");
}
}

$userObject->save("superuser");
}
Expand Down

0 comments on commit e48ab2d

Please sign in to comment.