perf: per

This commit is contained in:
archer 2025-05-30 19:10:35 +08:00
parent e59816aba4
commit 2128d306ad
No known key found for this signature in database
GPG Key ID: 4446499B846D4A9E
2 changed files with 1 additions and 6 deletions

View File

@ -69,11 +69,6 @@ export class Permission {
return this.value === OwnerPermissionVal;
}
// 管理员
if ((this.value & ManagePermissionVal) === ManagePermissionVal) {
return (this._permissionList.manage.value & perm) === perm;
}
return (this.value & perm) === perm;
}

View File

@ -19,7 +19,7 @@ export const TeamPermissionList: PermissionListType<TeamPermissionKeyEnum> = {
},
[PermissionKeyEnum.manage]: {
...PermissionList[PermissionKeyEnum.manage],
value: 0b000001
value: 0b000101
},
[TeamPermissionKeyEnum.appCreate]: {
checkBoxType: 'multiple',