File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
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,8 @@ export default {
132
137
methods: {
133
138
getMembershipData() {
134
139
axios
135
- .get (` /api/v2/${this .endpointForType }/${this .object .id } ` )
140
+ // .get(`/api/v2/${this.endpointForType}/${this.object.id}`)
141
+ .get (` /api/v2/rbac/${this .object .root_type }/${this .object .id } ` )
136
142
.then (response => {
137
143
this .ACLTableData = this .generateAclTable (response .data );
138
144
})
@@ -304,7 +310,8 @@ export default {
304
310
},
305
311
mounted() {
306
312
this .listUsers ();
307
- this .ACLTableData = this .generateAclTable (this .object );
313
+ this .getMembershipData ();
314
+ // this.ACLTableData = this.generateAclTable(this.object);
308
315
},
309
316
watch: {
310
317
group: {
You can’t perform that action at this time.
0 commit comments