Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Jun 24, 2022

Backport of #81474
Before #86889 a regular user with employees in multiple
companies was not able to change his own language due to a chain of
event calling onchange on all the employee_ids and employee_ids on
res.users being read as sudo.
The fix does work but was wrong because it gave access to the user's
public employee regardless of the active company_id
A domain was added to employee_ids to make force the security rules even
in sudo.

Forward-Port-Of: #94558

Backport of odoo#81474
Before odoo#86889 a regular user with employees in multiple
companies was not able to change his own language due to a chain of
event calling onchange on all the employee_ids and employee_ids on
res.users being read as sudo.
The fix does work but was wrong because it gave access to the user's
public employee regardless of the active company_id
A domain was added to employee_ids to make force the security rules even
in sudo.

X-original-commit: 90cec40
@robodoo
Copy link
Contributor

robodoo commented Jun 24, 2022

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Jun 24, 2022

This PR targets 15.0 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Jun 24, 2022
@C3POdoo C3POdoo added the RD research & development, internal work label Jun 24, 2022
@robodoo robodoo closed this in 1823e5c Jun 25, 2022
@robodoo robodoo temporarily deployed to merge June 25, 2022 09:49 Inactive
@fw-bot fw-bot deleted the 15.0-14.0-fix-public-employee-ir-rule-wbr-1v9c-fw branch July 9, 2022 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants