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) »
  • Allowing users to dedupe
Pages: [1]

Author Topic: Allowing users to dedupe  (Read 962 times)

bchoc

  • Guest
Allowing users to dedupe
April 10, 2008, 01:57:13 pm
I'd like to allow certain user roles to merge duplicate records.  They don't need to be able to run the duplicate finder (which doesn't work for me anyway), but if they have a pair of records they want to combine, I want them to be able to, by going directly to a URL like so:

/civicrm/contact/merge?reset=1&cid=888&oid=999

This works great, for me.  But that's not how I'd like to spend my time!  :)

I realize this isn't standard permissioning, and probably never will be.  I thought I'd ask, if I may, where might I find the code that defines the permission to run the Merge, or is it tied into a more general Admin-level permission set?

Brian

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: Allowing users to dedupe
April 10, 2008, 04:11:05 pm

The easiest way to do this is to add an entry in the permissionedItems array (line 171 of CRM/Core/Menu.php). There are quite a few examples out there for various permissioning needs

If you need to add another permission, you can extend the _perm hook in drupal/civicrm.module, line 125

Note that Drupal 6 has changed the menu structure completely, so u'll need to rework your changes for Drupal 6 / CiviCRM 2.1

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) »
  • Allowing users to dedupe

This forum was archived on 2017-11-26.