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) »
  • access permission on different contacts
Pages: [1]

Author Topic: access permission on different contacts  (Read 675 times)

vrakesh1

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: civicrm-4.0.1-joomla
  • CMS version: joomla1.6
  • MySQL version: mysql5
  • PHP version: php5.2.8
access permission on different contacts
December 05, 2011, 01:37:33 am
I have added "3 school student forms" under Individual.
forms are identical and share common custom data fields.

same way I have created 2 different forms under "Organization"

now I want to set up 3 staff members for different school which should see only forms and data related to assigned school.

I tried to use ACL but I found that it assign "Contacts" and all individual and organization fall under "Contact"
this way each administrator can see all 3 school and organization forms as well.

can anyone please help me by providing link/description of how can we set up different user access permission on all three schools students so one user may view/manage contacts of that school only and can not see other data.

Thanks!
« Last Edit: December 05, 2011, 01:39:13 am by vrakesh1 »

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: access permission on different contacts
December 05, 2011, 01:44:12 am
Quote
now I want to set up 3 staff members for different school which should see only forms and data related to assigned school.

I think best way would be to use hook ( buildForm ) and remove form elements that based on school.

Kurund
Found this reply helpful? Support CiviCRM

vrakesh1

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: civicrm-4.0.1-joomla
  • CMS version: joomla1.6
  • MySQL version: mysql5
  • PHP version: php5.2.8
Re: access permission on different contacts
December 05, 2011, 02:02:24 am
Kurund  Thank you very much for fast reply.

I am new to civicrm, can you please send me any link/reference how can I use hook ( buildForm )


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: access permission on different contacts
December 05, 2011, 02:25:13 am
You should check

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmbuildForm
Implementation examples can be found here: http://svn.civicrm.org/civicrm/branches/v4.0/drupal/civitest.module.sample

Kurund
Found this reply helpful? Support CiviCRM

vrakesh1

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: civicrm-4.0.1-joomla
  • CMS version: joomla1.6
  • MySQL version: mysql5
  • PHP version: php5.2.8
Re: access permission on different contacts
December 05, 2011, 02:40:52 am
Thanks Kurund,

The links you send seems to be related with drupal.
I am using joomla1.6 so can you please send some information for joomla.

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: access permission on different contacts
December 05, 2011, 03:46:17 am
It's a example of CiviCRM hook implementation, you can also implement it for joomla, check http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification#CiviCRMhookspecification-Proceduresforimplementinghooks%28forJoomla%29

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • access permission on different contacts

This forum was archived on 2017-11-26.