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

Jorwoods/combining permissionsrules #1381

Merged

Conversation

jorwoods
Copy link
Contributor

@jorwoods jorwoods commented May 30, 2024

This allows for combining PermissionRules if the grantee type and id matches. The user of TSC can bitwise or | two or more rules together to keep the most permissive of rules. The user can bitwise and & them together to keep the most restrictive of rules.

Incidentally also adds the ability to check if two ReferenceItems are equal.

Allow | Allow = Allow
Allow | None = Allow
Allow | Deny = Allow
None | Deny = None
Deny | Deny = Deny

Allow & Allow = Allow
Allow & None = None
Allow & Deny = Deny
None & Deny = Deny
Deny & Deny = Deny

@jacalata jacalata merged commit 2f8fd5d into tableau:development Jun 15, 2024
21 checks passed
@jorwoods jorwoods deleted the jorwoods/combining_permissionsrules branch June 15, 2024 21:57
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.

None yet

2 participants