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

WebSearch: restricted records in latest additions #2145

Conversation

kaplun
Copy link
Member

@kaplun kaplun commented Aug 25, 2014

  • When a record belongs to both a public and a restricted collection,
    no longer display it in the list of latest additions of the
    public collection (in accordance to the outcome of an empty search query
    over the public collection).
    (closes Bug in latest addition WRT restricted records #1315)
  • Amend documentation of CFG_WEBSEARCH_VIEWRESTRCOLL_POLICY
    WRT default policy value.

Signed-off-by: Samuele Kaplun samuele.kaplun@cern.ch

* When a record belongs to both a public and a restricted collection,
  no longer display it in the list of latest additions of the
  public collection (in accordance to the outcome of an empty search query
  over the public collection).
  (closes inveniosoftware#1315)

* Amend documentation of CFG_WEBSEARCH_VIEWRESTRCOLL_POLICY
  WRT default policy value.

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
## Additionally, by default, since CFG_WEBSEARCH_VIEWRESTRCOLL_POLICY
## is set to ANY, any record belonging to a restricted
## collection is entitled to be displayed in the
## latest additions.
Copy link
Member Author

Choose a reason for hiding this comment

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

I have only one doubt here: currently when we display restricted collection splash pages such as: http://cds.cern.ch/collection/ATLAS%20Communications%20Physics?ln=en we indeed do not display any record (because not authenticated users can still access splash pages of restricted collection...

So here I think we should amend this patch to alway remove restricted records...

Copy link
Member

Choose a reason for hiding this comment

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

@kaplun Yes, the splash pages are not under RBAC, so all restricted records should be removed on those pages for webcolling. Unless CFG_WEBSEARCH_VIEWRESTRCOLL_POLICY is permissive. If it is not permissive, we should not display any record during webcolling.

Copy link
Member

Choose a reason for hiding this comment

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

@kaplun Have you checked this case since?

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually nope, but I can give it one more look

Copy link
Contributor

Choose a reason for hiding this comment

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

@kaplun it might be that the fix/handling this correctly is tightly related to issue #1511 which actually would be quite important to solve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in latest addition WRT restricted records
5 participants