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 registration to a certain role/group/membership type
Pages: [1]

Author Topic: Restrict registration to a certain role/group/membership type  (Read 2459 times)

kncosta

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
Restrict registration to a certain role/group/membership type
December 14, 2008, 09:01:09 am
Hi all,

Based on what I've tested so far, CiviEvent is able to track events properly but once you create an event and make it available to online registration any member may register to that event.
I'm trying to setup a event to just some of my members (contacts). It could be based on groups, tags, membership type, whatever but I wasn't able to find a way to restrict this by using profile, ACL or any other combination. Does anyone can shed some light on this? Perhaps this is not possible on current release (2.12). This is the short version of the problem...

If you have more time to read, here is the full story of the other challenges related to events I'm trying to address:

The event I'm trying to setup has 100 seats only. 40 seats are from group A, 30 for group B and 30 for group C. Each person belongs to just ONE group. The total audience is 1000 distict contacts who follow the same breakdown (400 contacts for group A, 300 for B and 300 for C). As CiviEvent does not create one event for 3 distinct audiences I'm setting up 3 separate events, at same date/time. This may work as design if I filter the event's URL for each group by using blocks or any other mecanism to restrict view of data (in drupal). The problem is that users are "creative" and by the moment they realize all seats are taken from their session, they may change the ID from the event URL and find the event that should belong to another group. If that happens, I don't have a way of preventing this from happening unless I can restrict the registration by using any sort of filter. Does it make sense? Is this a valid concern?

Issue:
If there is just one seat left to an event, the system currently allows me to register myself and if I have multilple registration enabled, I can also register how many people I want and this should not be allowed because there is just ONE seat left.

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 registration to a certain role/group/membership type
December 14, 2008, 09:44:30 am

1. You can use acl's to restrict an event to a group of civicrm contacts. You'll need to set up acl groups etc. The users will need to login to be able to access the event that they have permission for

2. The multiple registrations and max participants issue is fixed in 2.2

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

kncosta

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
Re: Restrict registration to a certain role/group/membership type
December 15, 2008, 05:57:54 pm
Thanks Lobo. Let's wait for 2.2 to test the topic #2.

Regarding the acl+group setup to restrict access to events. I was able to do it but when I click on the register now button on an event I don't have permission to, the system shows me a permission error message:
"Sorry. A non-recoverable error has occurred.
The requested Profile (gid=1) is disabled OR it is not configured to be used for 'Profile' listings in its Settings OR there is no Profile with that ID OR you do not have permission to access this profile. Please contact the site administrator if you need assistance.

Return to home page."

Is there other way of generating a more friendly message without custom code that I don't know? Please advise.

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 registration to a certain role/group/membership type
December 15, 2008, 09:06:28 pm

where is the register now button displayed? Is it CiviCRM code or some other code? if CiviCRM code, it is a bug, since we should only display the link if someone has permission to register for the event

You can write and register your own custom error handler here: http://drupal.demo.civicrm.org/civicrm/admin/setting/debug?reset=1

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 registration to a certain role/group/membership type

This forum was archived on 2017-11-26.