mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: secondary_emails, unconfirmed_emails, group_users are private fields
Those fields should be only visible to the user.
This commit is contained in:
committed by
Dan Ungureanu
parent
b9762afc10
commit
6258406419
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user