feat: fix admin role (#1527)
This commit is contained in:
parent
ba517b6a73
commit
fd31a0b763
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user