Skip to content

feat(permissions): don't allow cross-community request viewing - #958

Open
palkerecsenyi wants to merge 2 commits into
CERNDocumentServer:masterfrom
palkerecsenyi:cross-community-visibility
Open

feat(permissions): don't allow cross-community request viewing#958
palkerecsenyi wants to merge 2 commits into
CERNDocumentServer:masterfrom
palkerecsenyi:cross-community-visibility

Conversation

@palkerecsenyi

Copy link
Copy Markdown
Member

Closes #956


  • Added a new generator SameAsExcept which is the same as SameAs but
    excludes generators that are an instance of a certain class.

  • Created a new permission in the record permission policy which is the
    same as can_preview except the RecordCommunitiesAction("curate"), so
    only members of the community receiving an inclusion/submission request
    can view it. Other communities to which the record belongs cannot view
    requests that aren't received by them.

  • Set this permission in new overrides of the CommunityInclusion and
    CommunitySubmission classes.

* Added a new generator `SameAsExcept` which is the same as `SameAs` but
excludes generators that are an instance of a certain class.

* Created a new permission in the record permission policy which is the
same as `can_preview` except the `RecordCommunitiesAction("curate")`, so
only members of the community receiving an inclusion/submission request
can view it. Other communities to which the record belongs cannot view
requests that aren't received by them.

* Set this permission in new overrides of the `CommunityInclusion` and
`CommunitySubmission` classes.
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.

fix(requests): don't allow cross-community request visibility

1 participant