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

Sharing view hides local roles if overridden by global ones #8

Open
keul opened this issue Apr 13, 2016 · 0 comments
Open

Sharing view hides local roles if overridden by global ones #8

keul opened this issue Apr 13, 2016 · 0 comments

Comments

@keul
Copy link
Member

keul commented Apr 13, 2016

This issue hits Plone 4 and Plone 5 (tested on Plone 4.3.9 and 5.0.4).

The inner login of the @@sharing view pre-populate the table with local roles if and only if a user has local roles but, if the user acquired global roles which override the local ones, his local roles are not shown.
See

info_item['roles'][r] = 'global'

How to reproduce the issue:

  • give to user1 local roles to document1
  • go to document1/@@sharing and you'll see on page load all of the local roles you gave him
    schermata 2016-04-13 alle 09 51 56
  • add users1 to group1, which have the same global roles you gave locally
  • go again to document1/@@sharing

Now local roles are hidden, although they are still there. The are not visible until you remove global roles from the user (or, if you explicitly search for user1 you'll see that global roles are applied).

schermata 2016-04-13 alle 09 53 07

In this way it seems that sharing view contains different data from the low level manage_listLocalRoles page.

This is not a big issue but I think that the sharing page must always inform about local roles on a document, so display the local roles checkbox for deleting them.

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

No branches or pull requests

1 participant