-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Published object with effective date in the future is not shown in folder_contents view #3571
Comments
long time ago, but this sounds like a regression: #1952 |
If I'm the owner, I also expect that the page is visible regardless of the workflow state. |
After some more investigations: not a regression but "hard to implement" ... as @davisagli already mentioned here https://community.plone.org/t/published-object-with-effective-date-in-the-future-is-not-shown-in-folder-contents-view/15410/2, the portal and a given path keyword in the query is checked for But I really would like to pull in more ideas to get this done (maybe) ... I could think of an enhancement of the @thet as you've implemented the check in the |
referring to the old discussions, i look in the code. it's hard to find a solution without wake up the full objects in the search result. i think it needs 3 parts to correctness:
|
|
If the problem is only on the foldercontent view, I would fix it there instead of the catalog filtering. In a normal view (folderlisting/contentlisting) it is ok to not show the object even if I'm the owner, because it is inactive/expired (*). If the pat-structure can query the catalog in an unrestricted mode, that could be the solution? anyway, it depends on the context, so an adapter that adapt on the foldercontent view (and reuse most of the logic) could be the way? (*) is inactive only when expired or there are other cases? |
the check for Solving this in |
@petschki where can i set this option? it's a rebuild of the js bundle needed? or exist an adapter like for tinymce to modify the pattern settings? |
I think these 3 parts are needed:
|
The behavior is fixed on https://classic.demo.plone.org it is not reproducible, can this closed? |
Note: it's still an issue in Volto, but there is a fix here: plone/volto#4764 |
@1letter i still see the same issue in classic ui in Plone 6.12 |
@MrTango okay, you're partly right. as editor in chief, all is fine. but as normal editor the issue exists |
I've solved in a site assigning "Show inactive portal content" permission to the Editor role at portal level. Do you see any drawback? The question is: what was the use case when Editor should not see inactive portal content? We should document (@stevepiercy ) what the roles are supposed to mean before any code changing. |
Before I document anything, I need to know the roles, the object, and the permissions each role may perform on that object. |
We need something like this https://5.docs.plone.org/working-with-content/collaboration-and-workflow/workflow-policies.html Actually we've https://training.plone.org/workflow/roles-and-permissions.html which is pretty good IMHO. Maybe we could add as an example the role "Content Manager" that has Contributor + Editor + Reviewer + Reader + has "view inactive content" permission that basically can go anywhere and change/publish/create content. Then we've Site Admin which is a Content Manager but can also access the Site configurations. Finally, we've the Manager that can do everything. |
I'm fine with whatever y'all think is best. We need to determine the audience. It sounds like a User Guide item, and not a Developer Guide item. Right now the Classic UI User Guide does not exist for Plone 6, but I hope that will change soon, once we can find a way to automate screenshots and videos. We also have an open PR to create a Developer Guide. |
Granting the "Show inactive portal content" permission to the Editor role at the portal level is probably fine and should help with this in cases where the Editor role is granted to users or groups for the entire site. For users who only have the Editor role in a subsite or folder, the permission won't be there when the catalog is queried in the context of the entire site. |
@stevepiercy there is nothing to document, this needs to be fixed in core. |
go to https://demo-latest-plone6.plone.org/
the table is empty!
what i expect: the page that i added with a label "in the future"
The text was updated successfully, but these errors were encountered: