diff --git a/bin/addons/base/res/res_user.py b/bin/addons/base/res/res_user.py index d05174203ae..789559544ca 100644 --- a/bin/addons/base/res/res_user.py +++ b/bin/addons/base/res/res_user.py @@ -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()