Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tables for rules and scopes + execution flow fix #2069

Merged
merged 3 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ The priority of scope is configurable. To modify it, you should override `\Spryk

The default priority:

| SCOPE | PRIORITY |
|-----|-----|
| global | 2 |
| inherited | 1 |
| segment | 0 |
| SCOPE | DATABASE VALUE| PRIORITY |
|-----------|----------------|----------|
| global | 0 | 2 |
| segment | 1 | 0 |
| inherited | 2 | 1 |

By default, rules with a global scope have the highest priority, and rules with a segment scope have the lowest priority.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ The concept of scopes is very flexible. It lets you create any rules that suit t
As mentioned above, there are 3 types of scopes: `global`, `segment` and `inherited`.
In the database layer scope represented as enum:

| Scope | Database value |
|-----|-----|
| global | 0 |
| segment | 1 |
| inherited | 2 |
| SCOPE | DATABASE VALUE | PRIORITY |
|-----------|----------------|----------|
| global | 0 | 2 |
| segment | 1 | 0 |
| inherited | 2 | 1 |

Depending on the scope, the system behaves differently. Read the documentation for each of them:
- [Global scope](/docs/marketplace/dev/feature-walkthroughs/{{page.version}}/persistence-acl-feature-walkthrough/rules-and-scopes/global-scope.html)
Expand Down