I have a Drupal 7 site where users have a listing they can edit.
This all works fine when the listing is published but as soon as it's set to unpublished they can't view the page or the edit page.
They've got all the relevant permissions:
View own unpublished content Edit own content
I've even got the Override Node and View Unpublished modules installed but still I get the page trying and trying to load but never actually loading.
As soon as I set it to published it's all fine.
Open to any ideas.
That is how the permission system is setup for Drupal nodes. Users need some super user permission to be able to edit unpublished nodes (administer content I believe it's called), not very practical. You could instead make a custom form that allows users to publish their own content or create a custom node access function for editing nodes.
For me, the solution was to enable the "Bypass content access control" permission setting. In my case it was for an internal role, so I was comfortable with that but some roles I would not give that to.
I am running Drupal 7, BTW.
"Bypass content access control" only comes into play in a view. You can give someone permission to view their own unpublished nodes, but they will still not see those nodes in a View unless, in that specific view, you select
"Bypass content access control".
I had to create a view "Unpublish" in View module and Module: publishcontent and view_unpublish works perfectly. Solves the problem.