Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2036 Zobrazení

How do global and group-restricted record rules interact?

1.Global rules cannot be bypassed, and group-specific rules only restrict access within their bounds

2.Global rules can be augmented by group-specific rules to widen a user's access to a model

3.Global rules are ignored if a group-specific rule applies to a user

4.I don't know

Tell me which option is correct?

Avatar
Zrušit
Nejlepší odpověď

Here's the documentation in case you hadn't found it: Security in Odoo. Specifically, see below:

Global rules versus group rules

There is a large difference between global and group rules in how they compose and combine:

  • Global rules intersect, if two global rules apply then both must be satisfied for the access to be granted, this means adding global rules always restricts access further.
  • Group rules unify, if two group rules apply then either can be satisfied for the access to be granted. This means adding group rules can expand access, but not beyond the bounds defined by global rules.
  • The global and group rulesets intersect, which means the first group rule being added to a given global ruleset will restrict access.

So your option 1 is closest to reality. Option 2 is incorrect since global and group rules intersect, which means they narrow access, not widen it. Option 3 is incorrect since global rules always apply.

In essence, global rules are always applied and group rules can specify them even more.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
srp 25
984
2
bře 25
1395
1
bře 23
2550
1
bře 25
1303
2
lis 24
1513