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

feat: dynamically evaluate page access permissions #1953

Conversation

tomudding
Copy link
Member

Description

Instead of loading all pages as separate resources into the ACL, we dynamically evaluate whether someone may access the page or not.

A visitor can access a page if they have the required role or if they inherit the required role.


In reality, this only removes one query, but that query has been removed from all requests.

Related issues/external references

Closes GH-1952.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation improvement (no changes to code)
  • Other (please specify)

Instead of loading all pages as separate resources into the ACL, we dynamically
evaluate whether someone may access the page or not.

A visitor can access a page if they have the required role or if they inherit
the required role.
@tomudding tomudding marked this pull request as ready for review December 29, 2024 15:44
@tomudding tomudding merged commit b452472 into GEWIS:main Dec 29, 2024
4 checks passed
github-actions bot added a commit that referenced this pull request Dec 29, 2024
Tom Udding: Merge pull request #1953 from tomudding/feature/improved-custom-page-authorization-checks

feat: dynamically evaluate page access permissions

Co-authored-by: tomudding <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamically evaluate page access permissions
1 participant