Determine if a user belongs to a group via Groovy
SummaryThe Groovy Class User does not provide a method to determine if a user belongs to Group.
Is there a way to check if a user belongs to a certain group from Groovy?
The current methods available allow to retrieve a user name, or check if the user equals a known name, but is there a way to determine the user group(s) membership?
I think it could improve the use cases for setForceReadOnly / setForceEditable