PublishPress-Planner icon indicating copy to clipboard operation
PublishPress-Planner copied to clipboard

User can't change the Status of a post if the current status was deleted

Open andergmartins opened this issue 5 years ago • 4 comments

Screen Shot 2019-09-13 at 17 19 54

Even for admins, there is no select box for changing the status. It is there, but hidden. It seems to be related to lack of permissions. PublishPress permissions is not installed on the site.

andergmartins avatar Sep 13 '19 20:09 andergmartins

Related to #311. I just realised that the client has deleted the status Pending, which breaks the plugin when we have posts with that status.

On this particular case the post is set to Pending, but that status was removed from PublishPress. Which makes the plugin understand the user can't edit the post. Fixing #311 will prevent this to happen again.

Screen Shot 2019-09-13 at 17 24 58

andergmartins avatar Sep 13 '19 20:09 andergmartins

Restoring the Pending (slug = pending) status fixed the issue.

andergmartins avatar Sep 13 '19 20:09 andergmartins

Maybe we should improve the JS code above to support changing the post status on situations like that?

andergmartins avatar Sep 13 '19 20:09 andergmartins

Important to note that this didn't happened in the Quick Edit panel. So maybe that panel is not checking capabilities to see which user can or can't change the current status?

andergmartins avatar Sep 13 '19 20:09 andergmartins