mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Hide internal data by making it auxiliary
This commit is contained in:
@@ -235,7 +235,8 @@ export class DataAccessorBasedStore implements ResourceStore {
|
||||
if (this.isRootStorage(metadata)) {
|
||||
throw new MethodNotAllowedHttpError('Cannot delete a root storage container.');
|
||||
}
|
||||
if (this.auxiliaryStrategy.isAuxiliaryIdentifier(identifier) && this.auxiliaryStrategy.isRootRequired(identifier)) {
|
||||
if (this.auxiliaryStrategy.isAuxiliaryIdentifier(identifier) &&
|
||||
this.auxiliaryStrategy.isRequiredInRoot(identifier)) {
|
||||
const associatedIdentifier = this.auxiliaryStrategy.getAssociatedIdentifier(identifier);
|
||||
const parentMetadata = await this.accessor.getMetadata(associatedIdentifier);
|
||||
if (this.isRootStorage(parentMetadata)) {
|
||||
|
||||
Reference in New Issue
Block a user