Skip to content

Commit

Permalink
fix: 修复工作空间权限问题
Browse files Browse the repository at this point in the history
修复工作空间权限问题
  • Loading branch information
Somebody-JIAN committed Mar 24, 2021
1 parent 27db2f0 commit 6ee42fb
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6ee42fb

Please sign in to comment.