We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84c27f3 commit 7842ef1Copy full SHA for 7842ef1
model/folder.mjs
@@ -351,8 +351,8 @@ export async function userTree (user) {
351
352
// Each child is also added to read-permitted folders for caching
353
for (const el of achildren) {
354
- // Only 'admin' user can see all personal folders
355
- if (el.personal === true && el.user !== user && user !== '0') {
+ // Admin can see all personal folders, but only at the first level
+ if (el.personal && !(user === Const.PW_USER_ADMINID && el.parent === Const.PW_FOLDER_PERSONALROOTID)) {
356
continue
357
}
358
0 commit comments