plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
240 stars 183 forks source link

plone.app.vocabularies.Users vocabulary does not remove already selected users for Site Admin role. #3944

Open ewohnlich opened 2 months ago

ewohnlich commented 2 months ago

What I did:

This can be demonstrated with the Creators field. I tested as Manager and as Site Administrator. I selected one user from the list, let's call this UserA.

What I expect to happen:

Pulling up the drop down no longer includes UserA.

What actually happened:

As Manager: UserA does not appear in the dropdown As Site Admin: UserA still appears in the dropdown

What version of Plone/ Addons I am using:

6.0.10, on classic.plone.org

I would guess this has something to do with a permission somewhere?

ewohnlich commented 2 months ago

I guess this probably isn't a problem with the vocabulary, but with the widget or just the JS. The results of @@getVocabulary?name=plone.app.vocabularies.Users&field=creators&query=&page_limit=10&page=1 are the same for both. But for Manager it's filtering out UserA, but not for Site Admin.