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

Skip check for permission to change for related_via attrs #351

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

kofrezo
Copy link
Contributor

@kofrezo kofrezo commented Apr 5, 2024

Attributes on servertypes which are configured to get their value from another servertype (related_via) should be excluded from the permission check to change them because the actual change takes place on the target servertype and is also checked there.

Thus the check would be redundant and annoying because you have to whitelist the attributes in two places in ACLs.

@kofrezo kofrezo added the bug label Apr 5, 2024
@kofrezo kofrezo force-pushed the dk_fix_acl_check_related_attrs branch from bbc74aa to be2fd25 Compare April 9, 2024 14:47
@kofrezo kofrezo self-assigned this Apr 9, 2024
@kofrezo kofrezo requested a review from TuxPowered42 April 9, 2024 14:47
@kofrezo kofrezo marked this pull request as ready for review April 9, 2024 14:47
Attributes on servertypes which are configured to get their value from
another servertype (related_via) should be excluded from the permission
check to change them because the actual change takes place on the target
servertype and is also checked there.

Thus the check would be redundant and annoying because you have to
whitelist the attributes in two places in ACLs.
@kofrezo kofrezo force-pushed the dk_fix_acl_check_related_attrs branch 2 times, most recently from 0bebbdf to 3fcef5c Compare April 9, 2024 15:08
@kofrezo kofrezo merged commit 2120f7b into main Apr 10, 2024
9 checks passed
@kofrezo kofrezo deleted the dk_fix_acl_check_related_attrs branch April 10, 2024 13:21
YannikSc pushed a commit to YannikSc/serveradmin that referenced this pull request Apr 19, 2024
)

Attributes on servertypes which are configured to get their value from
another servertype (related_via) should be excluded from the permission
check to change them because the actual change takes place on the target
servertype and is also checked there.

Thus the check would be redundant and annoying because you have to
whitelist the attributes in two places in ACLs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant