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 CiviCase (Moderator: Dave Greenberg) »
  • CiviCase and ACL restrictions
Pages: [1]

Author Topic: CiviCase and ACL restrictions  (Read 8704 times)

nickholden

  • I post occasionally
  • **
  • Posts: 111
  • Karma: 1
  • CiviCRM version: 4.4.1
  • CMS version: Drupal 7
  • MySQL version: 5.5.32
  • PHP version: 5.4
CiviCase and ACL restrictions
February 15, 2013, 03:54:20 am
Has anyone done any work to use ACL permissions to give fine-grained perspective on cases in CiviCase?

We have a requirement to allow multiple departments to use CiviCRM and specifically the CiviCase module, but there is a view that people working in one department should not be able to view the case entries relating to cases being managed by a different department. In other words, we would like to create an ACL that can have 'view' access to all cases of a specific case type, and restrict viewing those cases to only members of that ACL.

Even better, in fact, would be to still allow the existence of a case to be viewable by other users, and maybe the start and end dates, but not the details of the case (including the case type). So that a user could see that the contact had an ongoing case but not know what the case was about. Could such a masking be possible?

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: CiviCase and ACL restrictions
February 15, 2013, 08:58:35 am

Not heard of anyone having done this, but faintly remember that this comes up periodically

Would be good to make case acl enabled also. If we do go down that path, we should design a more scalable solution (like contacts acl). the acl solution for groups / custom data etc is not scalable (i.e. uses arrays rather than tables)

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

FETmz

  • I’m new here
  • *
  • Posts: 18
  • Karma: -1
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.21
  • MySQL version: 5.5.31
  • PHP version: 5.3.10-1ubuntu3.6
Re: CiviCase and ACL restrictions
May 15, 2013, 10:58:38 pm
Actually, Yes there is a possibility; however hard-coding from scratch; unfortunately as it is not my code; I don't have permission to show but its customised in:

drupal-dev/sites/all/modules/customfolder/case.module

it contains the case types, roles, mapping of the roles. Then after it was placed like this:

$result = array
(
                            'Housing Support' => array ('Group'),
                            'Adult Referral Day Care' => array ('Group 2'),
                            'Job Seeking' => array ('*')
);
return $result;

The part that I configured is the $result section, this is where I specify what roles can access certain case types, they are not visible to others; however I'm not sure if this helps, I'm stilling learning CiviCRM functionalities and capabilities.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • CiviCase and ACL restrictions

This forum was archived on 2017-11-26.