Wednesday, August 13, 2025
1 change · saas-18.4
Resolved issues and error corrections
This fixes an issue where portal pages could receive incorrect access information for document discussions, making the system think a user had read access when they did not. The change ensures access details reflect the user's real permissions, helping avoid misleading interface behavior around chatter and shared links.
Original PR description
Before this commit, the `_thread_to_store` method would always set the `hasReadAccess` property to true. This was fine because the only flow that would add the values to the store would already check the existance and access to the thread. However after change [1] the access values would be sent in more flows, one of which being portal chatter initialization. This causes the client to have incorrect access information to the thread (i.e. hasReadAccess would be true even when accessing portal document through token). This commit fixes the issue by sending the correct access values. [1] https://github.com/odoo/odoo/pull/220774 Forward-Port-Of: odoo/odoo#222545 Forward-Port-Of: odoo/odoo#222281