From 9f510e491e4c60c59ed1ec196cd04f086075cfc4 Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Mon, 14 Jan 2019 02:47:26 +0000 Subject: [PATCH] publish muk_security - 12.0 --- muk_security/__manifest__.py | 2 +- muk_security/models/base.py | 23 +---------------------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/muk_security/__manifest__.py b/muk_security/__manifest__.py index 44e8247..e130e58 100644 --- a/muk_security/__manifest__.py +++ b/muk_security/__manifest__.py @@ -20,7 +20,7 @@ { "name": "MuK Security", "summary": """Security Features""", - "version": "12.0.1.5.0", + "version": "12.0.1.5.1", "category": "Extra Tools", "license": "AGPL-3", "website": "http://www.mukit.at", diff --git a/muk_security/models/base.py b/muk_security/models/base.py index ea6f965..b4c00f4 100644 --- a/muk_security/models/base.py +++ b/muk_security/models/base.py @@ -38,16 +38,6 @@ class Base(models.AbstractModel): return self return super(Base, self)._filter_access_rules(operation) - @api.multi - def _filter_access(self, operation): - if self.check_access_rights('read', False): - return self._filter_access_rules(operation) - return self.env[self._name] - - @api.multi - def _filter_access_ids(self, operation): - return self._filter_access(operation).ids - @api.model def _apply_ir_rules(self, query, mode='read'): if isinstance(self.env.uid, NoSecurityUid): @@ -72,15 +62,4 @@ class Base(models.AbstractModel): def check_field_access_rights(self, operation, fields): if isinstance(self.env.uid, NoSecurityUid): return fields or list(self._fields) - return super(Base, self).check_field_access_rights(operation, fields) - - @api.multi - def check_access(self, operation, raise_exception=False): - try: - access_right = self.check_access_rights(operation, raise_exception) - access_rule = self.check_access_rule(operation) is None - return access_right and access_rule - except AccessError: - if raise_exception: - raise - return False \ No newline at end of file + return super(Base, self).check_field_access_rights(operation, fields) \ No newline at end of file