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

Commit 89612bd

Browse files
committed
Make sure to save repoId in session when loading minisite, can make some issues if shared user have other workspaces accesses.
1 parent 37b6c13 commit 89612bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/plugins/action.share/src/Http/MinisiteAuthMiddleware.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ public static function handleRequest(ServerRequestInterface $requestInterface, R
9898
if(!empty($ctx) && $ctx->hasUser() && isSet($shareData["REPOSITORY"])){
9999
$repoObject = UsersService::getRepositoryWithPermission($ctx->getUser(), $shareData["REPOSITORY"]);
100100
$ctx->setRepositoryObject($repoObject);
101+
if($sessions){
102+
SessionService::saveRepositoryId($shareData["REPOSITORY"]);
103+
}
101104
$requestInterface = $requestInterface->withAttribute("ctx", $ctx);
102105
}
103106

0 commit comments

Comments
 (0)