File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 27
27
return-object
28
28
>
29
29
<template v-slot :item .name =" { item } " >
30
- <router-link :to =" { name: 'UserProfileAdmin', params: { id: item.source.replace('users/', '') } }" >{{
30
+ <router-link
31
+ v-if =" item.source.includes('users/')"
32
+ :to =" { name: 'UserProfileAdmin', params: { id: item.source.replace('users/', '') } }"
33
+ >{{ item.name }}</router-link
34
+ >
35
+ <router-link v-if =" item.source.includes('groups/')" :to =" { name: 'GroupAdmin' }" >{{
31
36
item.name
32
37
}}</router-link >
33
38
</template >
@@ -132,7 +137,7 @@ export default {
132
137
methods: {
133
138
getMembershipData() {
134
139
axios
135
- .get (` /api/v2/${this .endpointForType }/${this .object .id } ` )
140
+ .get (` /api/v2/rbac/ ${this .object . root_type }/${this .object .id } ` )
136
141
.then (response => {
137
142
this .ACLTableData = this .generateAclTable (response .data );
138
143
})
@@ -304,7 +309,7 @@ export default {
304
309
},
305
310
mounted() {
306
311
this .listUsers ();
307
- this .ACLTableData = this . generateAclTable ( this . object );
312
+ this .getMembershipData ( );
308
313
},
309
314
watch: {
310
315
group: {
Original file line number Diff line number Diff line change @@ -694,7 +694,7 @@ export default {
694
694
return FORM_METADATA [this .localObject .type ].rules ;
695
695
},
696
696
hasOwnerPerms() {
697
- return this .user . admin || this .localObject . acls [ this . user . username ]. role & 7 ;
697
+ return this .userStore . hasOwnerPerms ( this .localObject ) ;
698
698
}
699
699
},
700
700
watch: {
You can’t perform that action at this time.
0 commit comments