perf: per
This commit is contained in:
parent
e59816aba4
commit
2128d306ad
@ -69,11 +69,6 @@ export class Permission {
|
|||||||
return this.value === OwnerPermissionVal;
|
return this.value === OwnerPermissionVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 管理员
|
|
||||||
if ((this.value & ManagePermissionVal) === ManagePermissionVal) {
|
|
||||||
return (this._permissionList.manage.value & perm) === perm;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (this.value & perm) === perm;
|
return (this.value & perm) === perm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@ export const TeamPermissionList: PermissionListType<TeamPermissionKeyEnum> = {
|
|||||||
},
|
},
|
||||||
[PermissionKeyEnum.manage]: {
|
[PermissionKeyEnum.manage]: {
|
||||||
...PermissionList[PermissionKeyEnum.manage],
|
...PermissionList[PermissionKeyEnum.manage],
|
||||||
value: 0b000001
|
value: 0b000101
|
||||||
},
|
},
|
||||||
[TeamPermissionKeyEnum.appCreate]: {
|
[TeamPermissionKeyEnum.appCreate]: {
|
||||||
checkBoxType: 'multiple',
|
checkBoxType: 'multiple',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user