parent
27db2f0153
commit
6ee42fbbea
|
@ -267,7 +267,14 @@
|
||||||
let lastOrganizationId = this.currentUser.lastOrganizationId;
|
let lastOrganizationId = this.currentUser.lastOrganizationId;
|
||||||
let userRole = this.currentUser.userRoles.filter(r => r.sourceId === lastOrganizationId);
|
let userRole = this.currentUser.userRoles.filter(r => r.sourceId === lastOrganizationId);
|
||||||
if (userRole.length > 0) {
|
if (userRole.length > 0) {
|
||||||
if (userRole[0].roleId === "org_admin") {
|
let isOrg_admin = false;
|
||||||
|
userRole.forEach(row=>{
|
||||||
|
if(row.roleId === "org_admin" ){
|
||||||
|
isOrg_admin = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (isOrg_admin) {
|
||||||
this.result = this.$post(url, this.condition, response => {
|
this.result = this.$post(url, this.condition, response => {
|
||||||
let data = response.data;
|
let data = response.data;
|
||||||
this.items = data.listObject;
|
this.items = data.listObject;
|
||||||
|
|
Loading…
Reference in New Issue