Skip to content

Commit d17b466

Browse files
committed
fix: properly update owner object in FSNodeContext
1 parent 01e4faa commit d17b466

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/src/filesystem/FSNodeContext.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const { NodeInternalIDSelector, NodeChildSelector, NodeUIDSelector, RootNodeSele
2525
const { Context } = require("../util/context");
2626
const { NodeRawEntrySelector } = require("./node/selectors");
2727
const { DB_READ } = require("../services/database/consts");
28-
const { UserActorType } = require("../services/auth/Actor");
28+
const { UserActorType, AppUnderUserActorType } = require("../services/auth/Actor");
2929
const { PermissionUtil } = require("../services/auth/PermissionService");
3030

3131
/**
@@ -746,6 +746,9 @@ module.exports = class FSNodeContext {
746746
username: res.owner?.username,
747747
};
748748
}
749+
if ( ! ( actor.type === AppUnderUserActorType ) ) {
750+
if ( fsentry.owner ) delete fsentry.owner.email;
751+
}
749752

750753
const info = this.services.get('information');
751754

0 commit comments

Comments
 (0)