Bugfixes
authorpinky <>
Sat, 10 Mar 2007 04:42:34 +0000 (04:42 +0000)
committerpinky <>
Sat, 10 Mar 2007 04:42:34 +0000 (04:42 +0000)
bzr revid: pinky-5d97a4653ba145caf3f52b31c853bef0bfe9ae78

bin/addons/base/res/res_user.py

index d051742..7895595 100644 (file)
@@ -52,7 +52,7 @@ class roles(osv.osv):
                cr.execute('select parent_id from res_roles where id=%d', (role_id,))
                roles = cr.fetchone()[0]
                if roles:
-                       return self.check(cr, uid, ids, roles[0])
+                       return self.check(cr, uid, ids, roles)
                return False
 roles()