File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 27
27
use OCA \Richdocuments \Db \DirectMapper ;
28
28
use OCA \Richdocuments \Service \FederationService ;
29
29
use OCA \Richdocuments \Service \InitialStateService ;
30
+ use OCA \Richdocuments \Service \UserScopeService ;
30
31
use OCA \Richdocuments \TemplateManager ;
31
32
use OCA \Richdocuments \TokenManager ;
32
33
use OCP \AppFramework \Controller ;
@@ -52,6 +53,7 @@ public function __construct(
52
53
private IRootFolder $ rootFolder ,
53
54
private TokenManager $ tokenManager ,
54
55
private DirectMapper $ directMapper ,
56
+ private UserScopeService $ userScopeService ,
55
57
private InitialStateService $ initialState ,
56
58
private IConfig $ config ,
57
59
private AppConfig $ appConfig ,
@@ -88,6 +90,8 @@ public function show($token) {
88
90
return $ this ->showPublicShare ($ direct );
89
91
}
90
92
93
+ $ this ->userScopeService ->setUserScope ($ direct ->getUid ());
94
+ $ this ->userScopeService ->setFilesystemScope ($ direct ->getUid ());
91
95
92
96
$ folder = $ this ->rootFolder ->getUserFolder ($ direct ->getUid ());
93
97
if ($ this ->templateManager ->isTemplate ($ direct ->getFileid ())) {
You can’t perform that action at this time.
0 commit comments