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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Admin activity list on dashboard in Civi 2.0.7
Pages: [1]

Author Topic: Admin activity list on dashboard in Civi 2.0.7  (Read 955 times)

boxfresh_1979

  • Guest
Admin activity list on dashboard in Civi 2.0.7
March 03, 2009, 03:26:53 am
Hello,

I am a little confused by some of the functionality in the dashboard in CiviCRM 2.0.7. It makes sense that users should see upcoming activities that are relevant to them, however if users have the permission "Administer CiviCRM" they are shown all upcoming activities even if they are not attending the meeting or part of the phone call.

I found this post http://issues.civicrm.org/jira/browse/CRM-2828 that implies this is the intended behaviour but just wanted to find out why this might be.

I've made the following tweak to getOpenActivities() in CRM/Activity/BAO/Activity.php so that users with the permission "Administer CiviCRM" only see activities related to them in some way.

<code>
        //if ( !$admin ) {
            $clause = " ( source_contact_id = %1 or target_contact_id = %1 or assignee_contact_id = %1 or civicrm_case.contact_id = %1 ) ";
            $params = array( 1 => array( $data['contact_id'], 'Integer' ) );
        //}
</code>

Cheers

Rich

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Admin activity list on dashboard in Civi 2.0.7

This forum was archived on 2017-11-26.