Skip to content
Snippets Groups Projects
Commit 20fbfdd2 authored by Cédric Krier's avatar Cédric Krier
Browse files

BASE: revert check in ir.model

bzr revid: ced-4dcc55c185a09b735ba355b2a409516f19c3c09e
parent f56df5f4
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,6 @@ class ir_model_access(osv.osv):
'perm_unlink': fields.boolean('Delete Permission'),
}
def check(self, cr, uid, model_name, mode='read'):
return True
assert mode in ['read','write','create','unlink'], 'Invalid access mode for security'
if uid==1:
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment