diff --git a/client/src/views/Account/AccountPermission.vue b/client/src/views/Account/AccountPermission.vue index 380b52f..45a2d43 100644 --- a/client/src/views/Account/AccountPermission.vue +++ b/client/src/views/Account/AccountPermission.vue @@ -41,7 +41,7 @@ export default defineComponent({ }, getValue(key: string, project: string | undefined = undefined, default_: number | undefined = undefined) { const val = this.permissions?.find(el => el.key == key && el.project == project)?.value - return val ? val : default_ + return val != undefined ? val : default_ }, setProjectAccess(project: string, value: boolean) { this.permissions = this.permissions?.filter(el => el.key != 'project' || el.project != project)