Skip to content

Conversation

@Williambraecky
Copy link
Contributor

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.

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.
@robodoo
Copy link
Contributor

robodoo commented Jun 24, 2022

Pull request status dashboard

@kbapt
Copy link
Contributor

kbapt commented Jun 24, 2022

robodoo r+

@C3POdoo C3POdoo added the RD research & development, internal work label Jun 24, 2022
robodoo pushed a commit that referenced this pull request 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.

closes #94558

Signed-off-by: Kevin Baptiste <[email protected]>
@robodoo robodoo closed this Jun 24, 2022
@robodoo robodoo temporarily deployed to merge June 24, 2022 16:38 Inactive
@fw-bot fw-bot deleted the 14.0-fix-public-employee-ir-rule-wbr branch July 8, 2022 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants