IBX-10854: Added ability to hide content item drafts#667
Conversation
alongosz
left a comment
There was a problem hiding this comment.
AFAIR this is by-design. There's no purpose to hiding content drafts because content drafts can be read by people with versionread policy, the same as hidden content can be accessed. Are you trying to fix some fatal error or enable hiding drafts? TL;DR;.
yes, it is. If you don't want content to be visible at time of publishing.
@alongosz edited.... |
|
There was a problem hiding this comment.
Doesn't this mean, with this change, that for drafts every user has ability to hide & reveal?
Because we won't be checking permission resolver for drafts.
There was a problem hiding this comment.
Explanation of what happens when $targets=[] is addressed in #667 (comment)
|
@vidarl please make sure #667 (comment) is addressed, PR is rebased and the CI lits green. |
acbb2d8 to
ca2b306
Compare
@konradoboza |
e6a3f58 to
6671254
Compare
91fd72c to
af81e00
Compare
|
|
@alongosz, @konradoboza, @Steveb-p : Can you have a new look on this one. I think all review comments has been addressed |
3e36e6e to
ca88c8c
Compare
|
a8709d3 to
c2ea69b
Compare
c2ea69b to
80a7dc1
Compare
|
tomaszszopinski
left a comment
There was a problem hiding this comment.
Adding request changes, so it more visible (see my earlier comment).
5b79d9c to
d969b17
Compare
@tomaszszopinski |
d969b17 to
be60b87
Compare
be60b87 to
9293a98
Compare
|
tomaszszopinski
left a comment
There was a problem hiding this comment.
QA approved on Ibexa DXP 4.6 exp.
|
Hi! Adding the Doc needed label, because the use case mentioned by Vidar is interesting and the best practices for handling this should to be documented:
Thinking about this right now, I'm not sure if I'd recommend hiding the draft to for all cases, I think it's: Case 1: Article content doesn't have to remain a secret:
Because hidden content is accessible through the REST API, this flow doesn't work for cases where the Article content has to remain a secret (for example, company merger announcement or anything that could move the stock market). For content that has to remain a secret before being published in multiple languages, the flow would be: Case 2: Article content has to remain a secret
This way the content remains a secret until it can be oficially announced, and cannot be previewed by REST API before that. The second case does not rely on "unsafe" hide/reveal, hide/reveal can be used as a simplified flow for not business critical content. Does it make sense to you as a recommendation? |





It is not possible to publish content in hidden state
For QA:
Note
Edited by @alongosz
Requires security testing, e.g., if user who doesn't have hide/reveal permissions is now able to do it.
Documentation: