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) »
  • is there a way of locking records based on the contact being deceased
Pages: [1]

Author Topic: is there a way of locking records based on the contact being deceased  (Read 789 times)

Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
is there a way of locking records based on the contact being deceased
October 11, 2010, 03:17:19 am
I am trying to find a way of locking a record when the contact is marked as deceased. I would like only the administrators to be able to edit the record but all other users to be locked out of the record.

Does anyone know how to do this?

Thanks

Chel

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: is there a way of locking records based on the contact being deceased
October 11, 2010, 07:04:20 am

if by locked out, you mean cannot edit the record, u can potentially do this via the:

hook_civicrm_pageRun (and hide the Edit button for non-admins)
hook_civicrm_buildForm : and enforce the constraint that only admins can edit deceased records

http://wiki.civicrm.org/confluence/display/CRMDOC32/CiviCRM+hook+specification

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • is there a way of locking records based on the contact being deceased

This forum was archived on 2017-11-26.