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

Abstract away the fetching of ACLs from the AclCheck trait #4810

Merged
merged 6 commits into from
Mar 28, 2024

Conversation

olivergrabinski
Copy link
Contributor

No description provided.

Comment on lines +61 to +69
(searchParams & parameter("label".?)).tmap { case (deprecated, rev, createdBy, updatedBy, label) =>
OrganizationSearchParams(
deprecated,
rev,
createdBy,
updatedBy,
label,
org => aclCheck.authorizeFor(org.label, orgs.read)
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is much nicer

@olivergrabinski olivergrabinski merged commit 644cd9c into BlueBrain:master Mar 28, 2024
6 checks passed
@olivergrabinski olivergrabinski deleted the refactor-aclcheck branch March 28, 2024 13:03
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.

2 participants