notification of non-preferred paths to exclude resource that is published or under review
@@ -122,7 +122,9 @@ def get_page_context(page, user, resource_edit=False, extended_metadata_layout=N
content_model.non_preferred_path_names = []
# whether the user has permission to change the model
can_change = content_model.can_change(request)
- if can_change and not content_model.raccess.published:
+ if can_change and not content_model.raccess.published_or_review_pending:
+ # display of non-preferred paths is relevant for resource that is not yet published or not under review for
+ # publication
content_model.non_preferred_path_names = content_model.get_non_preferred_path_names()
# user requested the resource in READONLY mode
