diff options
| author | jem-odoo <jem@openerp.com> | 2019-02-07 08:49:53 +0000 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2019-02-07 08:49:53 +0000 |
| commit | 794ebb0aafbac72051f4d150fd42f7bbc640a325 (patch) | |
| tree | 812a8c32d1b7cc965950875c23baadd6303d2075 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 2a63c2efee18230a3c9fd9898d93f546b60b790c (diff) | |
[FIX] portal: cast type to consteq signed token
To post a comment with a signed token, we compare tokens with the pid.
The token is signed with the pid, which is an integer. When checking
access, we compare the token with a pid as char. Obviously, the comparison
failed, and posting the message is refused, as the 2 'pid' does not
share the same type.
This commit cast the recieved 'pid' into an integer before checking
special access.
closes odoo/odoo#30906
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
