FIX: secondary_emails, unconfirmed_emails, group_users are private fields

Those fields should be only visible to the user.
This commit is contained in:
Krzysztof Kotlarek
2020-06-16 10:43:06 +10:00
committed by Dan Ungureanu
parent b9762afc10
commit 6258406419
5 changed files with 57 additions and 4 deletions

View File

@@ -595,7 +595,7 @@ const User = RestModel.extend({
);
}
if (!isEmpty(json.user.groups)) {
if (!isEmpty(json.user.groups) && !isEmpty(json.user.group_users)) {
const groups = [];
for (let i = 0; i < json.user.groups.length; i++) {