Skip to content

Commit

Permalink
NOJIRA
Browse files Browse the repository at this point in the history
Including the group detail in the json for users
  • Loading branch information
chasegawa committed Aug 19, 2021
1 parent b080885 commit 198b131
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public class User extends AbstractAuditable implements Owner, Ownable {
* @return the initial implementation, while supporting a user having multiple groups in the db side, acts as if the
* user can only belong to a single group
*/
@JsonIgnore
public Group getGroup() {
return getUserGroups().isEmpty() ? null : (Group) userGroups.toArray()[0];
}
Expand Down Expand Up @@ -145,4 +144,4 @@ public void setGroups(Set<Group> groups) {
public void registerLoader(ILazyLoaderHelper lazyLoaderHelper) {
this.lazyLoaderHelper = lazyLoaderHelper;
}
}
}

0 comments on commit 198b131

Please sign in to comment.