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) »
  • Hide activities using ACL?
Pages: [1]

Author Topic: Hide activities using ACL?  (Read 522 times)

superhua

  • I’m new here
  • *
  • Posts: 14
  • Karma: 1
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7.32
  • MySQL version: 5.5.29
  • PHP version: 5.4.10
Hide activities using ACL?
February 26, 2013, 07:25:08 pm
Is it possible to hide a contact's activities from a specific ACL?

I suspect not as I have the following settings:

  • Drupal's permission "view all activities" unchecked for authenticated users
  • An ACL which can view only those in a certain group

but users in that ACL can view all activities of those in their group.

However, this seems to contradict the general rule highlighted here:
"A user can view an activity only if they have ACL permissions to see each of the source, target, and assignee contacts"
http://forum.civicrm.org/index.php/topic,24628.msg103702.html

Am I missing something?

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: Hide activities using ACL?
February 26, 2013, 08:25:53 pm

There is no specific acl support for activities

the indirect rules for what activities are displayed for a contact via an ACL have changed due to scaling issues with lots of activities. I dont remember offhand the exact rules used now

however there is a proposal (by eileen) to make the schema a lot lot more scalable (i.e. merge all activity contacts into one table). however this is unfunded and hence stalled. we expect this to be a 30-60 hour project, but will definitely scale a lot better than what we currently have

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

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Hide activities using ACL?
February 26, 2013, 11:22:26 pm
I have used a combination of template customization and hooks for this use case:

Quote
We want to introduce a sensitive activity type, where only the special consultants can see the details or attachments. Other employees should be able to see that there is an activity but not the details

Created groups for this, and only members of the groups or administrators can view details and attachments. Non-members of the groups see a remark "please contact the consultant to discuss the details of this activity".
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Hide activities using ACL?

This forum was archived on 2017-11-26.