fix: properly update owner object in FSNodeContext

This commit is contained in:
KernelDeimos
2025-07-25 22:12:19 -04:00
parent 01e4faa762
commit d17b466e37

View File

@@ -25,7 +25,7 @@ const { NodeInternalIDSelector, NodeChildSelector, NodeUIDSelector, RootNodeSele
const { Context } = require("../util/context");
const { NodeRawEntrySelector } = require("./node/selectors");
const { DB_READ } = require("../services/database/consts");
const { UserActorType } = require("../services/auth/Actor");
const { UserActorType, AppUnderUserActorType } = require("../services/auth/Actor");
const { PermissionUtil } = require("../services/auth/PermissionService");
/**
@@ -746,6 +746,9 @@ module.exports = class FSNodeContext {
username: res.owner?.username,
};
}
if ( ! ( actor.type === AppUnderUserActorType ) ) {
if ( fsentry.owner ) delete fsentry.owner.email;
}
const info = this.services.get('information');