Bug: Metadata wont save for contributors

Home Forums Calendar Products Events Calendar PRO Bug: Metadata wont save for contributors

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9888
    Tryon
    Participant

    I noticed that for contributors they can not save metadata such as date,time,location. this screencast shows an example http://www.screenr.com/Xors
    After reading the code i noticed in The-Events-Calendar/lib/the-events-calendar.class.php
    the following
    if ( !current_( ‘publish_posts’ ) )
    return;
    on lines 1368, 1393, 1431
    publish_posts is only available to authors and above. I changed the lines to
    if ( !current_user_can( ‘edit_posts’ ) )
    return;
    And now metadata is stored when a contributor adds/edits an event.

    #9911
    Rob
    Member

    That is awesome! Thanks for sharing, Tryon. This will come in handy as other users come with similar questions and I’ve filed it as an issue for our team to address in a future 2.x build. Thanks man.

    #9934
    Tryon
    Participant

    Welcome, glad to have a great calendar plugin

    #974549
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Bug: Metadata wont save for contributors’ is closed to new replies.