Skip to content
Snippets Groups Projects
Commit 2f26eee9 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[IMP] base: do not verify ACL on ir.property

Users have no longer access to unlink if not system. Property are
accessed via sudo so ACL check is no longer relevant.
parent a4472b10
No related branches found
No related tags found
No related merge requests found
......@@ -360,8 +360,6 @@ class Property(models.Model):
if value == default_value:
# avoid prop.unlink(), as it clears the record cache that can
# contain the value of other properties to set on record!
prop.check_access_rights('unlink')
prop.check_access_rule('unlink')
self._cr.execute("DELETE FROM ir_property WHERE id=%s", [prop.id])
elif value != clean(prop.get_by_record()):
prop.write({'value': value})
......
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