fix inGroup method on the user model

Signed-off-by: Bruno Gaspar <brunofgaspar1@gmail.com>