diff options
Diffstat (limited to 'settings/src')
-rw-r--r-- | settings/src/views/Users.vue | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/settings/src/views/Users.vue b/settings/src/views/Users.vue index dfb193d2a29..9e577160bb2 100644 --- a/settings/src/views/Users.vue +++ b/settings/src/views/Users.vue @@ -301,11 +301,16 @@ export default { } // Add separator - let separator = { - caption: true, - text: t('settings', 'Groups') - }; - groups.unshift(separator); + let realGroups = groups.find((group) => {return group.id !== 'disabled' && group.id !== 'admin'}); + realGroups = typeof realGroups === 'undefined' ? [] : realGroups; + realGroups = Array.isArray(realGroups) ? realGroups : [realGroups]; + if (realGroups.length > 0) { + let separator = { + caption: true, + text: t('settings', 'Groups') + }; + groups.unshift(separator); + } // Add everyone group |