diff --git a/src/views/Settings/AllowedGroups.vue b/src/views/Settings/AllowedGroups.vue index 5111eef8dc..cef64d8db6 100644 --- a/src/views/Settings/AllowedGroups.vue +++ b/src/views/Settings/AllowedGroups.vue @@ -77,7 +77,10 @@ export default { generateOcsUrl('/apps/provisioning_api/api/v1/config/apps/libresign/groups_request_sign'), ) if (response.data.ocs.data.data !== '') { - this.groupsSelected = JSON.parse(response.data.ocs.data.data) + const groupsSelected = JSON.parse(response.data.ocs.data.data) + this.groupsSelected = this.groups.filter(group => { + return groupsSelected.indexOf(group.id) !== -1 + }) } this.loadingGroups = false },