enonic / app-contentstudio

Content Studio of Enonic XP
GNU General Public License v3.0
11 stars 4 forks source link

Differentiate between missing and unavailable items selected in ContentSelector #7622

Open alansemenov opened 3 weeks ago

alansemenov commented 3 weeks ago

If an item selected in Image or Content selector cannot be resolved, we show a placeholder with message "Content is not available" (https://github.com/enonic/app-contentstudio/issues/6026). The problem here is that we don't differentiate between the case when the item is physically missing (deleted or archived) and the case when current user doesn't have READ permissions for the item.

We should differentiate between these two cases and show a different message when user doesn't have permissions: "Access denied".