summaryrefslogtreecommitdiff
path: root/addons/event_sms/data/sms_data.xml
diff options
context:
space:
mode:
authorToufik Ben Jaa <tbe@odoo.com>2019-08-21 15:03:02 +0000
committerToufik Ben Jaa <tbe@odoo.com>2019-08-21 15:03:02 +0000
commita2c52e9efd5f97aea56b997f015862840fb0f55e (patch)
tree4dea9b1b1d52594ab8833b887938605e498bb46a /addons/event_sms/data/sms_data.xml
parent0fe9a9ddd1946588f298f25e13fc5472ef17474d (diff)
[FIX] stock: remove a useless `with_user`
- Before the change of `sudo` and `with_user` the code was non sense, it was doing a `self.sudo(self._uid).check_access_rights('read')` which was doing nothing. But now with `with_user`, doing a `self.with_user(self._uid).check_access_rights('read')` breaks the flag `superuser`. Meaning that if the code was called using `sudo` it was bypassing the ACL tests. closes odoo/odoo#35896 Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
Diffstat (limited to 'addons/event_sms/data/sms_data.xml')
0 files changed, 0 insertions, 0 deletions