mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 18:52:36 +10:00
frontend permissions
* rework backend workspace permissions
This commit is contained in:
@ -106,7 +106,7 @@ export class PageController {
|
||||
}
|
||||
|
||||
const ability = await this.spaceAbility.createForUser(user, page.spaceId);
|
||||
if (ability.cannot(SpaceCaslAction.Read, SpaceCaslSubject.Page)) {
|
||||
if (ability.cannot(SpaceCaslAction.Manage, SpaceCaslSubject.Page)) {
|
||||
throw new ForbiddenException();
|
||||
}
|
||||
await this.pageService.forceDelete(pageIdDto.pageId);
|
||||
|
||||
Reference in New Issue
Block a user