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 +0200
committerSimon Lejeune <sle@odoo.com>2018-07-29 14:10:42 +0200
commitbfffe39f1376a56226572295b945a2cc73ba50ce (patch)
tree5f1768db3b30bb3b7516940fe3a0b304fb416923 /addons/web/static/src/js/views/basic/basic_controller.js
parentd255628ecf564d54825a55c662eeee552e66377a (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