fix(server): all viewers can share public link (#4968)

This commit is contained in:
liuyi 2023-11-17 12:34:15 +08:00 committed by 李华桥
parent 8b2c3d4c41
commit 9baad36e41
No known key found for this signature in database

View File

@ -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);