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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Using ACL's per event type
Pages: [1]

Author Topic: Using ACL's per event type  (Read 882 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Using ACL's per event type
January 26, 2010, 11:00:41 am
I have a site where I need to restrict registration to certain types of events (for example, all 'class' event types should only allow registration for authenticated users, while all 'fundraiser' event types should allow registration by anyone). ACLs appear to only allow me to set this up for all events or a specific event. Is there any future plan to allow it by event type?

Where would I start if I wanted to hack this in? How difficult?

thanks,
emily

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: Using ACL's per event type
January 26, 2010, 11:09:37 am

use acl hooks to implement the below. knowledge of PHP/SQL is needed to do the below. hooks are quite well documented in the wiki and various modules

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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Using ACL's per event type

This forum was archived on 2017-11-26.