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) »
  • Limiting registration with ACLs
Pages: [1]

Author Topic: Limiting registration with ACLs  (Read 521 times)

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Limiting registration with ACLs
January 02, 2011, 11:20:25 pm
Site has number of events open for public registration. A new event being set up should only be available to a limited group.

Drupal permissions for all roles have "register for events" unchecked.

In CiviCRM:
1) I set up an Access Role: Members
2) assigned Members group to the ACL role
3) Set up 2 ACls where everyone can Edit (register) for all events AND another ACL where only Members can register for the new (member-only) event.

It appears that there is no way of prioritizing which ACL is evaluated first and therefore the more open ACL wins (everyone for all events).

Is there a way to keep general events open to public but selectively disable access to specific events?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Limiting registration with ACLs
January 13, 2011, 09:52:28 am
Not so easily, but through a hook you can add additional ACL tests to restrict based on various criterias.

I'd put it in the buildForm. This chapter of our book should help you understanding better.

http://en.flossmanuals.net/CiviCRM/DevelopHooks
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Jason W

  • I post frequently
  • ***
  • Posts: 197
  • Karma: 12
  • jason@civitrainingtutorials.com
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.x.x
Re: Limiting registration with ACLs
October 02, 2012, 10:01:24 am
Hello Slovak,

I would suggest setting up an ACL for each event as you create it. This would replace the need for "umbrella" ACLs that cover all events. For instance, when you create an event, you can set it up so that only members can view or register(edit) for an event. If the event is Public, set editing it to Everyone. As events cycle through, simply delete the necessary ACL.

It may take a few minutes to fit ACLs to your current Events, but you will have the Access control you are looking for.

Cheers,
Jason
civiTrainingTutorials
"Helping You Help Others"

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Limiting registration with ACLs

This forum was archived on 2017-11-26.