Community Events – limit to specific (custom) Role?

Home Forums Welcome! Pre-Sales Questions Community Events – limit to specific (custom) Role?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22486
    Toddz
    Guest

    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. ( https://theeventscalendar.com/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

    #22688
    Joyce Grace
    Member

    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: https://theeventscalendar.com/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: https://theeventscalendar.com/what-are-template-overrides-and-how-do-i-do-them/

    I hope this helps!

    #24342
    Casey
    Participant

    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!

    #977642
    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 ‘Community Events – limit to specific (custom) Role?’ is closed to new replies.