Skip to content

Commit

Permalink
feat: fix admin role (#1527)
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu authored May 18, 2024
1 parent ba517b6 commit fd31a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/service/support/permission/auth/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fd31a0b

Please sign in to comment.