mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(server): should fallback to doc role permission if not specified (#10166)
This commit is contained in:
@@ -369,7 +369,10 @@ export class DocResolver {
|
||||
|
||||
return mapPermissionToGraphqlPermissions(
|
||||
mapDocRoleToPermissions(
|
||||
fixupDocRole(workspacePermission?.type, permission?.type)
|
||||
fixupDocRole(
|
||||
workspacePermission?.type,
|
||||
permission?.type ?? doc.defaultRole
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user