CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Restrict access to Event by Event Type - ACL
Pages: [1]

Author Topic: Restrict access to Event by Event Type - ACL  (Read 525 times)

mcgeehon

  • I post occasionally
  • **
  • Posts: 76
  • Karma: 0
  • CiviCRM version: 4.x
  • CMS version: 7.x
  • MySQL version: 5.x
  • PHP version: 5.2.x
Restrict access to Event by Event Type - ACL
March 19, 2013, 08:28:16 am

Is there a way to restrict registration of an Event to an ACL?   I ask because we have paid members that exist as a Contact Group, and at present we do various workaround at restricting signup for events through a Drupal frontend to the events. 

I think you can create an ACL per event for restriction, but I was hoping to have a more generic ACL that I could apply to something like an event type.  That way I could have a single ACL for the events I want to restrict rather than hundreds of ACL's for all of my events.


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Restrict access to Event by Event Type - ACL
March 19, 2013, 08:58:25 am

yes, from the UI you can only create an ACL per event

however, you can potentially do the "event type" ACL via a hook implementation. In general, i think ACL's for custom groups / profiles / events needs a few improvements. A few things that come to mind include:

a. Make it scale for larger number of events (it currently uses arrays and all the ids of the various objects instead of temp tables and sql queries)

b. Make it generic, so allow things like event type for events, extends for custom groups etc

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Restrict access to Event by Event Type - ACL

This forum was archived on 2017-11-26.