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

[SHELVED] generator: allow explicit additional permissions #18

Closed

Conversation

fenekku
Copy link
Contributor

@fenekku fenekku commented Oct 25, 2019

@fenekku fenekku requested a review from ppanero October 25, 2019 16:16
Copy link
Member

@ppanero ppanero left a comment

Choose a reason for hiding this comment

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

Nice job! :) Few things to discuss that might impact the tests.

invenio_records_permissions/generators.py Show resolved Hide resolved
@@ -103,26 +103,54 @@ def query_filter(self, record=None, **kwargs):


class AnyUserIfPublic(Generator):
"""Allows any user if record is public.
"""Allows any user if record is open access.
Copy link
Member

Choose a reason for hiding this comment

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

Mayor: TBD, But I would prefer not changing the existing generators until the exact issues have been clarified. I would create a different one, namely AnyUserIfOpen.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, let's wait to see what's the verdict on inveniosoftware/rfcs/pull/12 . I will wait until this is resolved to address this.

invenio_records_permissions/policies/records.py Outdated Show resolved Hide resolved
@fenekku
Copy link
Contributor Author

fenekku commented Oct 29, 2019

Blocked until metadata_restricted / access_right i.e. inveniosoftware/rfcs/pull/12 is accepted.

@fenekku fenekku changed the title generator: allow explicit additional permissions [BLOCKED] generator: allow explicit additional permissions Oct 29, 2019
@fenekku fenekku changed the title [BLOCKED] generator: allow explicit additional permissions [BLOCKED by RFC #12 and #7] generator: allow explicit additional permissions Nov 21, 2019
@fenekku fenekku changed the title [BLOCKED by RFC #12 and #7] generator: allow explicit additional permissions [SHELVED] generator: allow explicit additional permissions Dec 3, 2019
@fenekku
Copy link
Contributor Author

fenekku commented Feb 24, 2020

Shelved in favour of access levels

@fenekku fenekku closed this Feb 24, 2020
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.

[SHELVED like RFC #12] Allow explicit (additional) permissions
2 participants