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) »
  • Access to the Case Dashboard Dashlet
Pages: [1]

Author Topic: Access to the Case Dashboard Dashlet  (Read 802 times)

ailgm

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • Drupal solution provider
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.0.89
  • PHP version: 5.2.9
Access to the Case Dashboard Dashlet
August 26, 2014, 06:14:41 am
When customizing the CiviCRM dashboard, my admin account includes a "Case Dashboard Dashlet", but other roles I've set up don't show it as available.

What permission or setting determines which users / roles can see this?

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Access to the Case Dashboard Dashlet
August 26, 2014, 01:33:25 pm
I think it's tied to whatever the permissions are for the underlying CiviReport. But to be honest I'm not sure about "Case Dashboard Dashlet". I would think it would be this code below, in which case you'd need either access all cases or access my cases:

https://github.com/civicrm/civicrm-core/blob/master/CRM/Dashlet/Page/CaseDashboard.php

ailgm

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • Drupal solution provider
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.0.89
  • PHP version: 5.2.9
Re: Access to the Case Dashboard Dashlet
August 26, 2014, 06:08:32 pm
There are two specific roles I'm trying to get this working with.

Both have these permissions:
 CiviCase: access my cases and activities
 CiviCase: access all cases and activities
 CiviCase: add cases

One has these permissions (the other doesn't):
 CiviReport: access CiviReport
 CiviReport: access Report Criteria
 CiviReport: administer Reports

Both roles can access the Case Dashboard from the menu (at /civicrm/case?reset=1), but not the Dashlet form.  I thought it might be tied to the two permissions (access my cases or access all cases) too, but it seems not.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Access to the Case Dashboard Dashlet
August 27, 2014, 08:03:07 am
You could try something like running the following SQL query on your database. CiviCRM should then rebuild the available dashlets. Make a database backup first, or at least the civicrm_dashboard_contact table.

delete from civicrm_dashboard_contact where contact_id='the contact id';

where "the contact id" is the contact id for the contact that is having the problem.


It's also possible you need "administer civicrm" permission, but I don't see any evidence of that.

ailgm

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • Drupal solution provider
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.0.89
  • PHP version: 5.2.9
Re: Access to the Case Dashboard Dashlet
August 28, 2014, 08:22:56 pm
Thanks for the ideas.  Unfortunately ...

New contacts have this problem, so I don't think it's a matter of rebuilding the available dashlets for a particular contact whose data might be corrupted.

Granting "administer civicrm" permission doesn't add it (but it does open up a lot of other stuff I don't want those users to access).  Neither does "administer civicase".

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Access to the Case Dashboard Dashlet
August 29, 2014, 08:31:39 am
Actually I think this is a core configuration error. It's looking for an older permission that doesn't exist anymore.

Can you run these SQL queries to update the config:

1) select id from civicrm_dashboard where label='Case Dashboard Dashlet';
This will give you the id number. In mine it's 5. Since it's core stuff yours is probably 5 too.

2) update civicrm_dashboard set permission='access my cases and activities,access all cases and activities', permission_operator='OR' WHERE id=5;
But change the 5 to whatever number you have.

Currently it's set to "access CiviCase", which isn't a possible permission. It used to be, but I think that was before dashlets existed so it's a bit odd.

ailgm

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • Drupal solution provider
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.0.89
  • PHP version: 5.2.9
Re: Access to the Case Dashboard Dashlet
August 29, 2014, 06:58:12 pm
That was it.  The id in mine was 4.

Thank you.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Access to the Case Dashboard Dashlet
August 31, 2014, 06:59:16 pm
https://issues.civicrm.org/jira/browse/CRM-15211

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Access to the Case Dashboard Dashlet

This forum was archived on 2017-11-26.