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) »
  • Why are all the activities display in the dashboard for admins ?
Pages: [1]

Author Topic: Why are all the activities display in the dashboard for admins ?  (Read 852 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Why are all the activities display in the dashboard for admins ?
July 02, 2009, 01:41:01 am
Hi,

I'm admin on all the civicrm installs, and I can't use the activities very effectively because the dashboard is filled with all activities, not only mines.

What was the rationnal for that ? Can I disable it ?

X+

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Why are all the activities display in the dashboard for admins ?
July 02, 2009, 05:20:10 am
In Drupal it's a specific permission under access control: view all activities. if you disable that priv then you won't have to see them.

it may still also be connected to 'administer civicrm' priv as well.

or you can hack the permissions if you don't like the above options...it used to be at

Line 176 civicrm/CRM/Contact/Page/View/Dashboard.php: $admin = CRM_Core_Permission::check( 'view all activities') || CRM_Core_Permission::check('administer CiviCRM' );

you could remove the priv for administer civicrm on that line.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Why are all the activities display in the dashboard for admins ?
July 02, 2009, 06:39:15 am
Hi,

But why is that there in the first place ? I'm tempted to change the code and commit, but I'm assuming it didn't come by accident, and was wondering what was the initial usage .

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: Why are all the activities display in the dashboard for admins ?
July 02, 2009, 07:38:31 am

the theory was that admins would like a global overview and hence we show all activities.

a better idea might be to implement a switch for admins bettween Show All Activities and Show My Activities. We've taken this approach in some CiviCase pages

wanna code this up as a patch?

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

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Why are all the activities display in the dashboard for admins ?
July 02, 2009, 07:46:13 am
this usage was changed by an issue i submitted because staff members (who don't have administer civicrm priv) wanted to be able to see all activities and it seemed appropriate to separate it out (which i still think it is).

however, lobo's idea of a switch specific to admins (which is separate from the view all activities priv) seems like a great idea.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Why are all the activities display in the dashboard for admins ?

This forum was archived on 2017-11-26.