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

Commit

Permalink
Make sure to save repoId in session when loading minisite, can make s…
Browse files Browse the repository at this point in the history
…ome issues if shared user have other workspaces accesses.
  • Loading branch information
cdujeu committed Nov 9, 2016
1 parent 37b6c13 commit 89612bd
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -98,6 +98,9 @@ public static function handleRequest(ServerRequestInterface $requestInterface, R
if(!empty($ctx) && $ctx->hasUser() && isSet($shareData["REPOSITORY"])){
$repoObject = UsersService::getRepositoryWithPermission($ctx->getUser(), $shareData["REPOSITORY"]);
$ctx->setRepositoryObject($repoObject);
if($sessions){
SessionService::saveRepositoryId($shareData["REPOSITORY"]);
}
$requestInterface = $requestInterface->withAttribute("ctx", $ctx);
}

Expand Down

0 comments on commit 89612bd

Please sign in to comment.