From b0e0665fe2cefb7cfe69d73b338437e03f0b59de Mon Sep 17 00:00:00 2001 From: Christian Hofmaier Date: Thu, 2 Jul 2020 20:04:27 +0000 Subject: [permissionmanager] frontend use own getChilds function --- webapp/src/components/EventModuleEdit.vue | 2 +- webapp/src/components/PermissionModuleEdit.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'webapp') diff --git a/webapp/src/components/EventModuleEdit.vue b/webapp/src/components/EventModuleEdit.vue index c079ee5..c5aabe1 100644 --- a/webapp/src/components/EventModuleEdit.vue +++ b/webapp/src/components/EventModuleEdit.vue @@ -631,7 +631,7 @@ export default { }, async loadChilds () { if (this.groups.length > 0) { - var response = await this.$http.post('/api/events/blacklist', { groups: this.groups }) + var response = await this.$http.post('/api/events/getChilds', { groups: this.groups }) this.blackgroupList = response.data.subgroups this.blackclientList = response.data.clients this.blacklistGroups = this.blacklistGroups.filter(g => this.blackgroupList.map(x => x.id).indexOf(g.id) !== -1) diff --git a/webapp/src/components/PermissionModuleEdit.vue b/webapp/src/components/PermissionModuleEdit.vue index 85102b5..198bacf 100644 --- a/webapp/src/components/PermissionModuleEdit.vue +++ b/webapp/src/components/PermissionModuleEdit.vue @@ -205,7 +205,7 @@ export default { }, async loadChilds () { if (this.groups.length > 0) { - var response = await this.$http.post('/api/events/blacklist', { groups: this.groups }) + var response = await this.$http.post('/api/roles/getChilds', { groups: this.groups }) this.blacklistList = response.data.subgroups this.blacklist = this.blacklist.filter(g => this.blacklistList.map(x => x.id).indexOf(g.id) !== -1) } else { -- cgit v1.2.3-55-g7522