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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Permissions - Membership Directory - Drupal Login - Headache
Pages: [1]

Author Topic: Permissions - Membership Directory - Drupal Login - Headache  (Read 2109 times)

bmodesign

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
Permissions - Membership Directory - Drupal Login - Headache
July 16, 2009, 10:51:26 am
Hello, I have a systems issue that needs some new eyes. Here we go...

I have CiviCRM installed on Drupal. I'm using CiviCRM as a Membership database.

I've setup a nice profile that acts as a great searchable membership directory. With mapping too!

People can become members, but the system does not make a Drupal username and password... because the public does not have access to view Profiles (which is required to create a username and password for new users, on a profile) because i don't want them to have access to this nice membership directory.

I have the MD setup to be pulling from a smart group, that are all contacts, with memberships, that are current (this does not restrict access to that smart group, just pulls all people from that smart group to show in the profile search). That smart group is set as 'User and User Admin only'. Thinking that only my logged in users can view their info and other members info on the directory.

When I turn on access for the public to be able to view profiles, they can unfortunately see the directory, which is bad... really bad.

I've tried a work around that tony wrote about, http://forum.civicrm.org/index.php/topic,6129.msg30019.html#msg30019, which seems promising, but I keep getting redirected after logging in. The redirect works great without that code in the PHP file, but once it's entered in, it loops me back to the access denied page, again and again.

Does anyone have any other ideas? on how to give public access to profiles, but be able to limit/restrict the visibility of other profiles to the public, or other roles in general?

ACL's just give a View and Edit option. If I select for the public to have access to profiles, it doesn't matter what ACL's I set, they see everything.

Thank you for any suggestions. It is much appreciated.
bmodesign

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Permissions - Membership Directory - Drupal Login - Headache
July 17, 2009, 01:10:04 pm
Chatted about this a bit with Lobo and we're not aware of a solution for this other than the one that Tony at Dharmatech discussed with you on the other thread.

There is an improvement scheduled for a future release to make the permissions on Profiles more granular (e.g. create vs. edit vs. listing permissions) - which if applied to the current ACL model would solve your problem.
Protect your investment in CiviCRM by  becoming a Member!

bmodesign

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
Re: Permissions - Membership Directory - Drupal Login - Headache
July 17, 2009, 01:57:05 pm
Thank you Dave for the info.

I'm hoping on the future release to be able to say which role or membership can view which profile... that would be huge.

Any word on who's developing that side of it? or is there a way to donate to that particular part of the project?

Thanks again,
bmodesign

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Permissions - Membership Directory - Drupal Login - Headache
July 17, 2009, 03:58:07 pm
The issue tracker item is: http://issues.civicrm.org/jira/browse/CRM-4170

If you are interested in working on a patch for this or sponsoring it - contact us on IRC or send mail to lobo at civicrm dot org.
Protect your investment in CiviCRM by  becoming a Member!

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Permissions - Membership Directory - Drupal Login - Headache
July 17, 2009, 10:49:07 pm
Since you're on drupal have you considered the approach of having the "membership directory" delivered out by Views - which can restrict access based on roles - not sure if Views exposes the fields/info you need but may be worth a think about??
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

bmodesign

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
Re: Permissions - Membership Directory - Drupal Login - Headache
August 21, 2009, 08:33:27 am
peterd,
Thank you for the suggestion of using Views!
I'm having a great bit of trouble setting it up.
I've followed numerous guides found online...
I had to setup our system with 2 separate users for the databases, so Views is trying to use the Drupal user to login to the CiviCRM database... which wont work.  Any idea how to tell Views to use the Civi database user to gain access? do I put PHP code in the header to open up that connection, then in the footer to close it?
Thanks for any tips.
You guys are a great resource.

bmodesign

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: Permissions - Membership Directory - Drupal Login - Headache
August 21, 2009, 09:13:02 am

when we looked into it early on views2 could not do this. I suspect this has not changed. You'll have to give access to your drupal user to the civicrm database

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

bmodesign

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
Re: Permissions - Membership Directory - Drupal Login - Headache
October 05, 2009, 02:16:00 pm
Thanks,

Unfortunately we're on a PLESK system and using G'daddy and it won't allow us to give one user access to multiple databases. I'm not a server guy, so setting up everything was done through their Assisted Service plan.

Do you know of a good server management company/contractor? who'd allow us to stick with our host, but just manage the back end when needed?

Or should I switch hosts completely...  I might try the redirect again now that things have been updated a bit since the initial problem.

I'll keep you posted if things get better.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Permissions - Membership Directory - Drupal Login - Headache

This forum was archived on 2017-11-26.