Events Made Easy Forums Bug fixed or feature request implemented Authors can't publish posts (3.2.2)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42168
    Anonymous
    Inactive

    Users who have ‘publish_posts’ capability but not ‘edit_others_posts’ are unable to change their own post’s status to ‘Public’. It looks like the edit form is checking for EDIT_CAPABILITY before displaying the status postbox:

    if(current_user_can( EDIT_CAPABILITY)) {
    <!-- status postbox -->

    Changing it to:

    if(current_user_can( AUTHOR_CAPABILITY)) {
    <!-- status postbox -->

    would let an author publish their own events (there may need to be a check if the current user is the event creator or contact person).

    #45044
    Franky
    Keymaster

    You’re right, it should be AUTHOR_CAPABILITY. It has been changed in trunk. The check whether or not the user is the owner/creator of the event is being made when chowing the list of events and when the action is executed, so that should be ok.

    #45045
    Franky
    Keymaster

    Ok, fixed in current version.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top