mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08: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