mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-13 00:20:26 -06:00
fix: properly update owner object in FSNodeContext
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user