How can I allow editing of post and show the link even if the status is not publish (pending or draft)
It had to do with the permissions given to custom roles crated through Toolset Access plugin, see the solution: https://toolset.com/forums/topic/cred-form-edit-post-link-for-pending-post/#post-1072550
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.