Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #42644
    Anonymous
    Inactive

    How can I remove the ability for authors to add/edit events? I didn’t see an area under settings to set the top user role that can access events info. I am using the WP Members Plugin where I can limit roles by user level.

    Please let me know if I can limit Events Manager capabilities to just Editors & Administrators.

    Thanks – Erik

    #47231
    Franky
    Keymaster

    Look for the line

    define('MIN_CAPABILITY', 'edit_posts'); // Minimum user level to edit own events

    in events-manager.php and change it to your needs. I’ll try to make this configurable in the future.

    #47232
    Anonymous
    Inactive

    Thanks Franky. In this case, what would I turn this line of code into so that only Administrators and Editors could add events?

    #47233
    Franky
    Keymaster

    Look at the lines below that one:

    define(‘MIN_CAPABILITY’, ‘edit_posts’); // Minimum user level to edit own events

    define(‘AUTHOR_CAPABILITY’, ‘publish_posts’); // Minimum user level to put an event in public/private state

    define(‘EDIT_CAPABILITY’, ‘edit_others_posts’); // Minimum user level to edit any event

    define(‘SETTING_CAPABILITY’, ‘activate_plugins’); // Minimum user level to edit settings

    #47234
    Anonymous
    Inactive

    Hi Franky, I’m still not understanding what I need to do at this point. What do I change? Do I add something to these lines of code or do I add these capabilities within the Members Plugin and change them within the plugin? How do I set the minimum user level? Can you provide an example?

    Thanks

    #47235
    Franky
    Keymaster

    See here for the different roles you can use:

    http://codex.wordpress.org/Roles_and_Capabilities

    #47236
    Anonymous
    Inactive

    Ok, yes, I understand this, but edit_posts is the same function as editing blog posts. I need for my Author users to be able to blog, but not to be able to add an event. How do I distinguish between edit_posts for blogs and the events manager? Right now, I can’t turn off only the events addition or editing for Authors and I need to be able to do that.

    Thank you.

    #47237
    Franky
    Keymaster

    The checks performed by EME for roles/rights are only for EME activities, nothing else. Try “edit_others_posts”

    #47238
    Anonymous
    Inactive

    Under capabilities for the Author Role within my Members WordPress Plugin, I only have the following capabilities selected and yet the Authors are still able to add events through the Event Manager Extended WordPress admin area:

    delete_published_posts

    delete_posts

    edit_posts

    edit_published_posts

    publish_posts

    read

    upload_files

    I do not have edit_others_posts checked as an Author capability and yet they can still add/edit events. I don’t want my authors having the capability to do that.

    How do I fix this?

    #47239
    Franky
    Keymaster

    EME doesn’t use the roles you create, but uses the capabilities. So this must mean they still have this cpability somewhere. I don’t know the “Members WordPress Plugin”, but I’ll try this later on myself

    #47240
    Anonymous
    Inactive

    Ok – do you know of any way to limit the adding and editing of events for the Author user group? I don’t want my Authors to be able to add or edit events through Events Manager Extended. Is there any plugin or code change available to make this a reality? Only my Editors and Administrators should have access to adding/editing events.

    #47241
    Franky
    Keymaster

    Change the lines:

    define(‘MIN_CAPABILITY’, ‘edit_posts’); // Minimum user level to edit own events

    define(‘AUTHOR_CAPABILITY’, ‘publish_posts’); // Minimum user level to put an event in public/private state

    define(‘EDIT_CAPABILITY’, ‘edit_others_posts’); // Minimum user level to edit any event

    define(‘SETTING_CAPABILITY’, ‘activate_plugins’); // Minimum user level to edit settings

    to be:

    define(‘MIN_CAPABILITY’, ‘edit_others_posts’); // Minimum user level to edit own events

    define(‘AUTHOR_CAPABILITY’, ‘edit_others_posts’); // Minimum user level to put an event in public/private state

    define(‘EDIT_CAPABILITY’, ‘edit_others_posts’); // Minimum user level to edit any event

    define(‘SETTING_CAPABILITY’, ‘activate_plugins’); // Minimum user level to edit settings

    #47242
    Anonymous
    Inactive

    Perfect! That worked. Thank you very much.

    #47243
    Franky
    Keymaster

    Access rights management has been implemented in trunk.

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