[REF] base: Refactored Code
bzr revid: ach@tinyerp.com-20101011064948-ust4ovsiy9tyjs85
This commit is contained in:
parent
ce3a5813b9
commit
1cb3e4e099
|
@ -239,8 +239,6 @@ class ir_model_access(osv.osv):
|
|||
grouparr = group.split('.')
|
||||
if not grouparr:
|
||||
return False
|
||||
print grouparr
|
||||
|
||||
cr.execute("select 1 from res_groups_users_rel where uid=%s and gid IN (select res_id from ir_model_data where module=%s and name=%s)", (uid, grouparr[0], grouparr[1],))
|
||||
return bool(cr.fetchone())
|
||||
|
||||
|
|
Loading…
Reference in New Issue