Core/Groups: Fix setting the group roles and Role Check feature