Connections-Business-Directory / Connections

Directory Plugin for WordPress
https://connections-pro.com
GNU General Public License v2.0
26 stars 18 forks source link

When user edits their entry and it is sent to the moderation queue, they can no longer edit. #427

Closed shazahm1 closed 9 years ago

shazahm1 commented 9 years ago

As the subject states ... this actually only affect when editing via the Form extension.

The bug here here: https://github.com/Connections-Business-Directory/Connections/blob/develop/includes/shortcode/class.shortcode.php#L285

Because the entry is in the mod queue, it is no longer returned as a result so the $entryID == $results[0]->id check will fail resulting in the "You are not authorized to edit entries. Please contact the admin if you received this message in error." message.

This needs to be changes so the logged in user can always view, edit their entry just like Link in the admin.

ref: http://connections-pro.com/support/topic/moderated-edits-show-not-authorized/

shazahm1 commented 9 years ago

Fixed in commits: