diff options
| author | Julien (juc) Castiaux <juc@odoo.com> | 2019-01-29 14:07:28 +0000 |
|---|---|---|
| committer | Julien (juc) Castiaux <juc@odoo.com> | 2019-01-30 10:46:01 +0000 |
| commit | e65446fe42b02304b9741f4cf27d755ddf5bcaee (patch) | |
| tree | d74022e20d38776ccbfe0d88924fa86e247e9f4d /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | d609dbdd111754eb0efd42db2254cbeee6c0c20e (diff) | |
[FIX] mail: Force the writing of the attachment when the user can post
To reproduce:
1) Enable multi-company
2) Create two companies: c1, c2
3) Create two users: bob in c1 and alice in c2
4) Install subscription
5) Remove the ir.rule that forbid users from accessing subscriptions
made in other companies: "Subscription multi-company"
6) Using u1, create a new subscription in c1
7) Using u2, follow the chatter of the newly created subscription
allowing the user to post messages/log notes.
8) Using u2, send a message with an attachment. Access Error.
The problem raises only for the **first** attachment. That
attchement is written on the record as the main attachment thus
raises an error if the user doesn't have write access.
There is no problem to add attachment to any following record or
when the user has write access on the model. If the user doesn't
have access to the chatter, he is blocked before accessing the
write thus it is safe to sudo it.
opw-1915606
closes odoo/odoo#30659
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
