mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 15:34:05 +08:00
Merge branch 'main' into perm-x
This commit is contained in:
@@ -83,7 +83,7 @@ export class AuthenticationExtension implements Extension {
|
||||
}
|
||||
|
||||
if (!canEdit) {
|
||||
data.connection.readOnly = true;
|
||||
data.connectionConfig.readOnly = true;
|
||||
this.logger.debug(
|
||||
`User ${user.id} granted readonly access to restricted page: ${pageId}`,
|
||||
);
|
||||
@@ -91,7 +91,7 @@ export class AuthenticationExtension implements Extension {
|
||||
} else {
|
||||
// No restrictions - use space-level permissions
|
||||
if (userSpaceRole === SpaceRole.READER) {
|
||||
data.connection.readOnly = true;
|
||||
data.connectionConfig.readOnly = true;
|
||||
this.logger.debug(`User granted readonly access to page: ${pageId}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user