mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-23 05:33:08 +03:00
fix(server): all viewers can share public link (#4968)
This commit is contained in:
parent
8b2c3d4c41
commit
9baad36e41
@ -885,9 +885,9 @@ export class PagePermissionResolver {
|
||||
}
|
||||
|
||||
await this.permission.checkWorkspace(
|
||||
workspaceId,
|
||||
docId.workspace,
|
||||
user.id,
|
||||
Permission.Admin
|
||||
Permission.Read
|
||||
);
|
||||
|
||||
return this.permission.publishPage(docId.workspace, docId.guid, mode);
|
||||
@ -924,7 +924,7 @@ export class PagePermissionResolver {
|
||||
await this.permission.checkWorkspace(
|
||||
docId.workspace,
|
||||
user.id,
|
||||
Permission.Admin
|
||||
Permission.Read
|
||||
);
|
||||
|
||||
return this.permission.revokePublicPage(docId.workspace, docId.guid);
|
||||
|
Loading…
Reference in New Issue
Block a user