summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@odoo.com>2018-07-29 14:10:42 +0100
committerSimon Lejeune <sle@odoo.com>2018-07-29 14:10:42 +0100
commit19ac9fba0d4be4e30d6103e6ebd49b466adb74b5 (patch)
treee476fb73b29cb3b6152d2b9b624b15e5f41873f1 /addons/web/static/src/js/views/basic/basic_controller.js
parentdae282279947e1f9cccad5ec0244ee654132509b (diff)
[FIX] base: strengthen ir.attachment access rights
An ir.attachment record can be served as a request's reponse if: - a request triggers a 404 - the ir.attachment record has its url field matching the url of the failed and is of binary type Following rev[1], portal users have the right to create these kind of records, and it is a security concern. This patch restrict the ability to create and write on the ir.attachment records that may be served through the dispatch's exception mechanism to settings users. As the asset bundles files are served through the use of these special ir.attachment, we make sure to retrieve only ir.attachment records created by the superuser in the `get_attachment` method. As website administrators often need to play with these special ir.attachment, we also let to this group the permission to manage them. [1] 61065b6d04248aa496765e1035c4c90cbdc38de7
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions