Commit 91df7a13defc2def3e4b97331658e95b7bf49443
1 parent
02a8418782
Exists in
master
and in
2 other branches
hid Admin from user
Showing
1 changed file
with
2 additions
and
5 deletions
Show diff stats
src/pages/User/user.vue
... | ... | @@ -1094,13 +1094,10 @@ export default { |
1094 | 1094 | this.userRole = response.data.data; |
1095 | 1095 | this.showLoader = false; |
1096 | 1096 | this.userRole = response.data.data; |
1097 | - console.log("response 1- ",response.data.data,"user role 1- ",this.userRole) | |
1098 | 1097 | var removedRoles = _.remove(this.userRole, function(c) { |
1099 | 1098 | //remove if color is green or yellow |
1100 | - return c.name === "SUPERADMIN" || c.name === "TEACHER" || c.name === "STUDENT" || c.name === "PARENT" ; | |
1101 | - }); | |
1102 | - console.log("response - ",response.data.data,"user role - ",this.userRole,"removed - ",removedRoles) | |
1103 | - | |
1099 | + return c.name === "ADMIN" ||c.name === "SUPERADMIN" || c.name === "TEACHER" || c.name === "STUDENT" || c.name === "PARENT" ; | |
1100 | + }); | |
1104 | 1101 | }) |
1105 | 1102 | .catch(error => { |
1106 | 1103 | this.showLoader = false; | ... | ... |