mirror of
https://github.com/docmost/docmost.git
synced 2026-07-25 20:55:15 +10:00
refactoring
This commit is contained in:
@@ -72,7 +72,7 @@ export class AuthenticationExtension implements Extension {
|
||||
|
||||
// Check page-level permissions
|
||||
const { hasAnyRestriction, canAccess, canEdit } =
|
||||
await this.pagePermissionRepo.getUserPageAccessLevel(user.id, page.id);
|
||||
await this.pagePermissionRepo.canUserEditPage(user.id, page.id);
|
||||
|
||||
if (hasAnyRestriction) {
|
||||
if (!canAccess) {
|
||||
|
||||
Reference in New Issue
Block a user