Commit fd31a0b7 by Archer Committed by GitHub

feat: fix admin role (#1527)

parent ba517b6a
......@@ -33,7 +33,7 @@ export async function authApp({
return Promise.reject(AppErrEnum.unExist);
}
const isOwner = String(app.tmbId) === tmbId;
const isOwner = String(app.tmbId) === tmbId || role === TeamMemberRoleEnum.owner;
const canWrite =
isOwner ||
(app.permission === PermissionTypeEnum.public && role !== TeamMemberRoleEnum.visitor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment