Skip to content

[17.0] [FIX] fastapi: Running User Rule Domain#541

Merged
OCA-git-bot merged 1 commit into
OCA:17.0from
sygel-technology:17.0-fix-fastapi
Jun 17, 2025
Merged

[17.0] [FIX] fastapi: Running User Rule Domain#541
OCA-git-bot merged 1 commit into
OCA:17.0from
sygel-technology:17.0-fix-fastapi

Conversation

@Tisho99

@Tisho99 Tisho99 commented Jun 16, 2025

Copy link
Copy Markdown
Contributor

Currently, the res.partner rule "fastapi: Running User Rule" filters records using the user_id field (Salesperson) instead of the user_ids field (Users).

image

Since the authenticated_partner_id context can be empty, the rule becomes too restrictive and may deny access to the running user, which defeats the purpose it was designed for.

T-8323

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @lmignon,
some modules you are maintaining are being modified, check this out!

@etobella etobella left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-541-by-etobella-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit cc70d7a into OCA:17.0 Jun 17, 2025
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at ee777f1. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants