mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
Fix remove project (#7941)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -331,7 +331,7 @@ export class SpaceSecurityMiddleware extends BaseMiddleware implements Middlewar
|
||||
private handleRemove (tx: TxCUD<Space>): void {
|
||||
const removeTx = tx as TxRemoveDoc<Space>
|
||||
if (!this.context.hierarchy.isDerived(removeTx.objectClass, core.class.Space)) return
|
||||
if (removeTx._class !== core.class.TxCreateDoc) return
|
||||
if (removeTx._class !== core.class.TxRemoveDoc) return
|
||||
this.removeSpace(tx.objectId)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user