Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
dfb0f1c12f
|
@ -267,7 +267,14 @@
|
|||
let lastOrganizationId = this.currentUser.lastOrganizationId;
|
||||
let userRole = this.currentUser.userRoles.filter(r => r.sourceId === lastOrganizationId);
|
||||
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 => {
|
||||
let data = response.data;
|
||||
this.items = data.listObject;
|
||||
|
|
Loading…
Reference in New Issue