Community Events – limit to specific (custom) Role?


  • Toddz July 20, 2012 Closed ✘

    Hi there. It looks like the COMMUNITY EVENTS plugin enables a logged-in user to create/edit events on the site front-end. Can this capability be LIMITED to specific USER ROLES? I have two custom roles — Schools and Students. I want Schools to be able to manage events, but not Students.

    I didn’t notice anything in the tutorial video for this. There are settings for Role-based access to the wp-admin, but I’m interested in Role-based access to the front-end pages of the Community Events plugin.

    I found a few forum threads here related to Roles, but nothing that seemed to address this exactly, or recently. ( http://tri.be/support/forums/topic/role-based-access-to-event-editing-creation/#post-15633 )

    Perhaps there’s a hook or filter? Or perhaps a template file in which i could put some php to test for the current user’s role, and redirect him if it’s not a School? Does the Community Events plugin use template files this way?

    This is a deal-breaker requirement for the project i’m working on now. So i’d love to know if this is possible with TEC.

    Thanks! Todd

  • Power User
    Posts: 443
    Topics: 1
    Answers: 54
    Joyce Grace July 24, 2012

    Hello Toddz,

    As far as I now role-based plugins and such should work with community events.

    Our technical documentation is here for your reference: http://tri.be/support/documentation

    Also, not really sure if this helpful to you (maybe not), but since you mentioned “templates” here is a little tutorial on how to over ride templates: http://tri.be/what-are-template-overrides-and-how-do-i-do-them/

    I hope this helps!

  • Support Team
    Posts: 408

    Answers: 46
    Casey August 30, 2012

    Toddz,
    Unfortunately not. You can disallow anonymous event submissions, but any logged-in users can add events.

    You can however require that they be approved by an admin before being published.

    We might think about adding user restriction in a future release. Thanks, and let me know if you have any other questions!

  • Viewing 3 posts - 1 through 3 (of 3 total)

This topic is closed