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) »
  • Anonymous user allowed to see event but not register
Pages: [1]

Author Topic: Anonymous user allowed to see event but not register  (Read 1366 times)

chapo

  • Guest
Anonymous user allowed to see event but not register
June 16, 2008, 04:46:32 am
Dear all,

I use a Drupal5.7/civirm2.04 website. On my home page in drupal, I have a block showing events (a nice php script found here : http://wiki.civicrm.org/confluence/display/CRMDOC/List+of+Upcoming+CiviEvents+or+Feed+of+Events).

Anonymous users can click on an event in this block to see its content (their drupal permissions is set to access civevent / access all custom data / register for events). If any of those permissions are removed, anonymous users can no longer view  event details...

However, I would like to restrict the event registration ONLY to registered users.
In short, anonymous users should be able to see events details, but be unable to register to them before they create an account in drupal.

Does anybody knows how to proceed ? Maybe a question of roles in civicrm, but I'm lost...
Thank you in advance for your help on this matter,
Regards,
Pierre

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Anonymous user allowed to see event but not register
June 17, 2008, 11:54:26 am
I don't think there's a way to do this currently without modifying the code.

BTW - unless the event display block requires it (which I don't think it does) - you shouldn't need to give "access CiviEvent" permission to anonymous users. This permission is for folks who need to manage events and participants in CiviCRM.
Protect your investment in CiviCRM by  becoming a Member!

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: Anonymous user allowed to see event but not register
June 18, 2008, 02:47:57 pm

This issue has now been addressed and fixed in 2.1: http://issues.civicrm.org/jira/browse/CRM-3219

There is a new permission called 'view event info'. If a role has 'view event info' but not 'register for events' they can see the info page but not register (i.e. the register link is hidden for them)

For folks using ACLs for events, the VIEW op gives the user access to event info, the EDIT op gives them access to both the info and the register page

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) »
  • Anonymous user allowed to see event but not register

This forum was archived on 2017-11-26.