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) »
  • Contact Dashboard permissions
Pages: [1]

Author Topic: Contact Dashboard permissions  (Read 2118 times)

reynog

  • Guest
Contact Dashboard permissions
September 13, 2008, 10:33:08 pm
I seem to have a conflict of permissions and I can't devise a way around it... so looking to see if anyone has any ideas that could help me.

I have a role called "member" that I would like to be able to see their OWN dashboard, so that they can view their contribution history. I enabled the "View Contact Dashboard" permission for this role and created my own menu item pointing to /civicrm/user?reset=1 and everything is great.

However, I have another group of people (a subset of people in the "member" role) that I want to be able to use the email contacts feature of Civi. I created this role ("email contacts") and gave them Access CiviCRM and View All Contacts permissions.

The problem is that they now have access to any user's dashboard, being able to see their contribution history (even though they don't have CiviContribute access and can't see the contributions tab on the user record).

I found this thread: http://forum.civicrm.org/index.php/topic,3448.0.html that seems to imply that even without the View Contact Dashboard permission, authenticated users could see their own dashboard, just wouldn't have the link on the Drupal user page. I am not seeing that behavior, however. If I remove the View Contact Dashboard permission for the "member" role, I get an Access Denied when I go to the user dashboard url.

Is there any way to set up permissions so that users can only view their own dashboard?  (Or any other workarounds anyone can think of?)

Thanks!

ETA: This is Civi 2.0.5 and Drupal 5.7

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: Contact Dashboard permissions
September 14, 2008, 12:53:23 pm

View all Contacts is a all powerful permission and hence you see the behavior below.

I dont think there is an easy way to accomplish what you want to do without any code hacks. You could potentially change the code at:

CRM/Contact/Page/View/UserDashBoard.php, line 66 and add some of the access rules u desire

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

reynog

  • Guest
Re: Contact Dashboard permissions
September 14, 2008, 06:13:54 pm
Quote from: Donald Lobo on September 14, 2008, 12:53:23 pm
View all Contacts is a all powerful permission and hence you see the behavior below.
Understood. However, even if I were to use CiviCRM ACL permissions, I would still have the same problem.

I'll probably take a look at the code and see if I can add a check to display only if self.  I really have no need for anyone to ever see anyone else's dashboard but their own.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Contact Dashboard permissions

This forum was archived on 2017-11-26.