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

permissions: add generator for handling groups enabled feature flag #133

Conversation

anikachurilova
Copy link
Member

@@ -123,3 +125,28 @@ def query_filter(self, **kwargs):
return q_all & else_query

return q_not_managed & then_query


class GroupsEnabled(Generator):
Copy link
Member Author

Choose a reason for hiding this comment

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

@anikachurilova anikachurilova force-pushed the add-groups-enabled-permission-generator branch from 1d31830 to ca575b4 Compare April 18, 2024 12:03
@anikachurilova anikachurilova force-pushed the add-groups-enabled-permission-generator branch from ca575b4 to 4c37d9d Compare April 23, 2024 16:01

def excludes(self, member_types=None, **kwargs):
"""Preventing needs."""
member_types = member_types or {"group"}
Copy link
Member Author

@anikachurilova anikachurilova Apr 23, 2024

Choose a reason for hiding this comment

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

Note: added default member_types (different from the old code)

@anikachurilova anikachurilova force-pushed the add-groups-enabled-permission-generator branch 2 times, most recently from cd2532a to 9f1ca10 Compare April 24, 2024 09:21
@anikachurilova anikachurilova force-pushed the add-groups-enabled-permission-generator branch from 9f1ca10 to f36d0af Compare May 7, 2024 15:02
@ntarocco ntarocco merged commit 9b44d62 into inveniosoftware:master May 7, 2024
2 checks passed
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.

api: add access/groups endpoint
2 participants