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) »
  • How to remove 'edit' from the Contact Dashboard for 'permissioned' relationships
Pages: [1]

Author Topic: How to remove 'edit' from the Contact Dashboard for 'permissioned' relationships  (Read 1499 times)

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
How to remove 'edit' from the Contact Dashboard for 'permissioned' relationships
July 13, 2009, 01:21:32 am
Just looking at a scenario where goal is to permit contacts to 'view' but not 'edit' other team members details from their Contact Dashboard if they have permission via a permissioned Relationship.

What will it take to hide or remove the 'edit' option so they can only 'view' the details?
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

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: How to remove 'edit' from the Contact Dashboard for 'permissioned' relationships
July 13, 2009, 08:51:29 am

if you want to do this properly, it will require a schema change (since the column definition needs to change)

else you can try to create a custom template and hack it in there (or the code)

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

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: How to remove 'edit' from the Contact Dashboard for 'permissioned' relationships
August 11, 2009, 07:50:28 pm
Just realised that the above was written from memory which was that there was both a 'view' and an 'edit' option on the Contact Dashboard - where as in fact, if you have permission to 'update' via the Relationship then you get this on the Dashboard - Edit Contact Information

So the tidy solution would be to modify the Relationship so that instead of the options being
- 'Contact A' can view and update information for 'Contact B ' and
- 'Contact B' can view and update information for 'Contact A '

there would be four options
- 'Contact A' can view information for 'Contact B ' and
- 'Contact A' can update information for 'Contact B ' and
- 'Contact B' can view information for 'Contact A '
- 'Contact B' can update information for 'Contact A '

And therefore if you only have 'view' then you would have 'view' show in the Dashboard and you would only get a screen that shows the Addrss details etc

And if you have 'update' then the existing string/url would be returned namely

http://drupal.demo.civicrm.org/civicrm/contact/relatedcontact?action=update&reset=1&cid=XX

Am anticipating Roland will dive in to this to get an idea of what would be involved to do it properly.
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

dimpzor

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Joomla 1.6
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: How to remove 'edit' from the Contact Dashboard for 'permissioned' relationships
June 02, 2011, 01:47:56 am
I would be interested in this feature, as i would like logged in users only to be able to view their contacts and not be able to edit them from their dashboard.

Is there a way i can remove the 'Edit Contact Information'  & 'Dashboard' links from a users 'Your Contacts / Organizations' list?
Are there certain files i can hack to achieve this?

Thanks
Andy
« Last Edit: June 02, 2011, 02:19:29 am by dimpzor »

spalmstr

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
  • CiviCRM version: 4.5.4
  • CMS version: Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
  • MySQL version: 5.6.21
  • PHP version: 5.6.0
Re: How to remove 'edit' from the Contact Dashboard for 'permissioned' relationships
April 30, 2012, 10:13:51 am
So would I.  It would be good if users could see their relationships without necessarily being able to change them.

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: How to remove 'edit' from the Contact Dashboard for 'permissioned' relationships
September 18, 2012, 10:25:56 am
Any update on providing this feature?

Thanks,
Craig

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How to remove 'edit' from the Contact Dashboard for 'permissioned' relationships

This forum was archived on 2017-11-26.