diff --git a/src/app/system-management/role/addrole/addrole.component.ts b/src/app/system-management/role/addrole/addrole.component.ts index 7418085..0edb055 100644 --- a/src/app/system-management/role/addrole/addrole.component.ts +++ b/src/app/system-management/role/addrole/addrole.component.ts @@ -30,7 +30,7 @@ export class AddroleComponent implements OnInit { let level = JSON.parse(sessionStorage.getItem("userdata")).organization .level; this.levelList = this.levelList.filter((e) => { - return e.level > level || e.level == 0; + return e.level >= level || e.level == 0; }); this.validateForm = this.fb.group({ name: [null, [Validators.required]], diff --git a/src/app/system-management/role/editrole/editrole.component.ts b/src/app/system-management/role/editrole/editrole.component.ts index 0138637..9cff536 100644 --- a/src/app/system-management/role/editrole/editrole.component.ts +++ b/src/app/system-management/role/editrole/editrole.component.ts @@ -37,7 +37,7 @@ export class EditroleComponent implements OnInit { let level = JSON.parse(sessionStorage.getItem("userdata")).organization .level; this.levelList = this.levelList.filter((e) => { - return e.level > level || e.level == 0; + return e.level >= level || e.level == 0; }); this.getMenus(); this.validateForm = this.fb.group({