# HG changeset patch
# User Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
# Date 1264668590 -3600
# Node ID 360c532070f58bf91412f9c32fbf4360500a9f63
# Parent  4e7e749186317a6196d49ca17c4567a390d01dc5
[entities] fix CWUser.is_in_group implementation

use self.groups property instead of self._groups which might not
be initialized.

diff -r 4e7e74918631 -r 360c532070f5 entities/authobjs.py
--- a/entities/authobjs.py	Wed Jan 27 11:26:57 2010 +0100
+++ b/entities/authobjs.py	Thu Jan 28 09:49:50 2010 +0100
@@ -82,7 +82,7 @@
     def is_in_group(self, group):
         """convience / shortcut method to test if the user belongs to `group`
         """
-        return group in self._groups
+        return group in self.groups
 
     def is_anonymous(self):
         """ checks if user is an anonymous user"""