Skip to content

Commit

Permalink
Merge pull request #3294 from nextcloud/backport/3293/stable27
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Nov 14, 2023
2 parents 3bc0f36 + b9c64a0 commit e3a34e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Controller/DirectViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use OCA\Richdocuments\Db\DirectMapper;
use OCA\Richdocuments\Service\FederationService;
use OCA\Richdocuments\Service\InitialStateService;
use OCA\Richdocuments\Service\UserScopeService;
use OCA\Richdocuments\TemplateManager;
use OCA\Richdocuments\TokenManager;
use OCP\AppFramework\Controller;
Expand All @@ -52,6 +53,7 @@ public function __construct(
private IRootFolder $rootFolder,
private TokenManager $tokenManager,
private DirectMapper $directMapper,
private UserScopeService $userScopeService,
private InitialStateService $initialState,
private IConfig $config,
private AppConfig $appConfig,
Expand Down Expand Up @@ -88,6 +90,8 @@ public function show($token) {
return $this->showPublicShare($direct);
}

$this->userScopeService->setUserScope($direct->getUid());
$this->userScopeService->setFilesystemScope($direct->getUid());

$folder = $this->rootFolder->getUserFolder($direct->getUid());
if ($this->templateManager->isTemplate($direct->getFileid())) {
Expand Down

0 comments on commit e3a34e9

Please sign in to comment.