summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_cache/thread_cache.js
diff options
context:
space:
mode:
authorRomeo Fragomeli <rfr@odoo.com>2020-07-30 13:33:34 +0000
committerAdrien Dieudonne <adr@odoo.com>2020-08-05 08:26:09 +0000
commit5a845325ee01c0e1117e5e57112089c1d54b2847 (patch)
tree61212af3df6005aa4b011a8359279446aaf50c97 /addons/mail/static/src/models/thread_cache/thread_cache.js
parent0c3fe8736d77763b4fb31fd76be1f41f1effd5c0 (diff)
[FIX] portal: Avoid error at login with portal user on mobile
Before this commit, some errors were shown to the end user when he tried to login to the mobile app with a portal user. The problem is the user was stuck to a blank page and wasn't able to logout even after reloading the app. Note that even if portal users aren't supposed to access to the backend, it's quite annoying to not be able to go back. After this commit, portal users are automatically redirected to the portal page ("/my") if they try go to "/web". This is the same behavior as when portal users login via "/web/login". By doing this we avoid having custom code in the native apps because we already avoid any login to the app if we are out of "/web". Note: this commit doesn't cover all cases as portal users are defined in the "base" module and the portal page is set in the "portal" module. So this this fix will not work if "portal" is not installed and if you manually created a portal user (only possible in debug mode). This is unlikely and we therefore consider that this fix covers the majority of cases while being the safest. Task ID: 2266024 opw-2281168 closes odoo/odoo#55439 X-original-commit: 29cbba73a71990e76f497ee892ce16fc7fc53d9f Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache/thread_cache.js')
0 files changed, 0 insertions, 0 deletions