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) »
  • "Access denied" attempting to edit contact info for related contacts
Pages: [1]

Author Topic: "Access denied" attempting to edit contact info for related contacts  (Read 1924 times)

tmcnulty1982

  • Guest
"Access denied" attempting to edit contact info for related contacts
November 20, 2008, 08:46:39 am
I'm using CiviCRM 2.1 and Drupal 6.6.  I setup a new Drupal group called 'members' with the 'view contact dashboard' permission.  Then I added a user to it who's tied to an individual contact.  The individual has a permissioned relationship (see http://civicrm.org/node/318) to an organization in the database.

When I login as the individual user in Drupal, I can edit my own contact information via the My Account -> Edit tab (in the "Individual Contact Information" profile that I setup).  When I go to the dashboard, I can see the relationship to the organization, but when I click Edit Contact Information for the organization, I get an Access Denied error.

The URL of the error is: civicrm/contact/relatedcontact?action=update&reset=1&cid=13629

Again the user in question has no CiviCRM permissions except 'view contact dashboard'.  Does it need something else?  I didn't see anything promising in the permission list and I thought I had already granted the appropriate permissions via the relationship.

Thanks
Tobias

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: "Access denied" attempting to edit contact info for related contacts
November 20, 2008, 09:51:33 am
Hey Tobias.  This is discussed on this thread. http://forum.civicrm.org/index.php/topic,5645.0.html

Access dashboard should be the only permission needed but it also needs access civicrm, which is not good.

there is an issue here: http://issues.civicrm.org/jira/browse/CRM-2964

According to Dave, it will be fixed in 2.1.2

For now, you can give people access CiviCRM permission if you feel comfortable doing so. And you can use some drupal tricks to block access to civicrm like create a separate menu/block just for that role with links to their dashboard, account, etc. and limit access to the navigation block to admins only. And maybe the path access module to block specific civicrm paths.

hope this helps
http://dharmatech.org
oss@dharmatech.org
801.541.8671

tmcnulty1982

  • Guest
Re: "Access denied" attempting to edit contact info for related contacts
November 20, 2008, 10:49:03 am
Thanks dharmatech.  It turns out 2.1.2 was released just after I posted this.  Upgrading seems to fix the bug.  Don't forget to rebuild your menus after getting the new source by going to: http://path_to_civicrm/menu/rebuild?reset=1.
« Last Edit: November 20, 2008, 10:51:31 am by tmcnulty1982 »

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: "Access denied" attempting to edit contact info for related contacts
November 20, 2008, 10:58:24 am
sounds good. perfect timing and thanks for the menu reminder. will do.

tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • "Access denied" attempting to edit contact info for related contacts

This forum was archived on 2017-11-26.