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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • prevent user editing own record and changing own group
Pages: [1]

Author Topic: prevent user editing own record and changing own group  (Read 800 times)

vsharma012

  • Guest
prevent user editing own record and changing own group
November 28, 2010, 11:56:32 pm
Civi3.2.2 On Drupal
Hi,

I created one regular group (for access) "Staff" with parent administrator and added to 4 contacts and they are users also. Created a ACL Role and Drupal Role  "Staff". ACL is working fine. User 1 see all other 3 records but cannot edit it as i have just given View permission when creating ACL. But He can edit his own record and also can uncheck the related group checkbox. IF he does that he is not the part of the "Staff". How can i prevent users for Not updating their own info.

I have verified civi permissions in drupal also. Ultimate goal is that user should not update his own information unless "Edit Any Contact "  permission is given.

Thanks.

Vikas
« Last Edit: November 28, 2010, 11:58:22 pm by vsharma012 »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: prevent user editing own record and changing own group
November 29, 2010, 09:24:30 pm
Quote
How can i prevent users for Not updating their own info.
I think you will have to remove "access CiviCRM" for that particular user / role

Kurund
Found this reply helpful? Support CiviCRM

vsharma012

  • Guest
Re: prevent user editing own record and changing own group
November 29, 2010, 11:08:24 pm
Quote from: Kurund Jalmi on November 29, 2010, 09:24:30 pm
Quote
How can i prevent users for Not updating their own info.
I think you will have to remove "access CiviCRM" for that particular user / role

Kurund

No actually i want them to access civiCRM but Not edit their own record. In the same way if i remove "edit any contact" permission from user they are not able to edit other contact. 

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: prevent user editing own record and changing own group
November 29, 2010, 11:14:25 pm
I don't think currently it is possible, you can use hooks / custom templates to implement this for your use case.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • prevent user editing own record and changing own group

This forum was archived on 2017-11-26.