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 (Moderator: Dave Greenberg) »
  • Relationship tab and without "view all contacts" permission
Pages: [1]

Author Topic: Relationship tab and without "view all contacts" permission  (Read 544 times)

francescbassas

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.28
  • MySQL version: 5.3
  • PHP version: 5.1
Relationship tab and without "view all contacts" permission
January 19, 2015, 03:09:29 pm
We upgrade recently CiviCRM from 4.4.6 to 4.5.5 and the users without "view all contacts permissions" are getting a DataTables warning message when they open relationship tab.

I have been researching a bit and I found that the problem is given because ajax callback civicrm/ajax/contactrelationships is set to "view all contacts" permission in civicrm_menu table.

If we set the value of access_arguments field to 'a:2:{i:0;a:1:{i:0;s:14:"access CiviCRM";}i:1;s:3:"and";}' the error disappears. But I'm not sure if this is a correct patch to this problem.

Can anyone lend me a hand?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Relationship tab and without "view all contacts" permission
January 19, 2015, 04:47:03 pm
Probably that is part of the right fix, and the other part would be to check for permission to view the specific contact in question within the ajax callback.
Try asking your question on the new CiviCRM help site.

francescbassas

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.28
  • MySQL version: 5.3
  • PHP version: 5.1
Re: Relationship tab and without "view all contacts" permission
January 20, 2015, 12:53:22 am
Thanks Coleman

I think this check you mention is out of my abilities. I opened an issue https://issues.civicrm.org/jira/browse/CRM-15845 so that the experts do the rest.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Relationship tab and without "view all contacts" permission

This forum was archived on 2017-11-26.