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) »
  • ACL drupal and civi "Edit Activities Only"
Pages: [1]

Author Topic: ACL drupal and civi "Edit Activities Only"  (Read 2575 times)

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
ACL drupal and civi "Edit Activities Only"
February 24, 2009, 12:39:21 am
Is there a way to limit a user to adding Activities only?
There is a list of custom activities to help track communications with contacts. So could someone  be allowed to add "Left Message about ....." but not allowed to edit the contact?
Thanks

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: ACL drupal and civi "Edit Activities Only"
February 24, 2009, 07:03:29 am

currently no. You will need to hack the core code to make the below possible.

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

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: ACL drupal and civi "Edit Activities Only"
February 24, 2009, 01:05:40 pm
I made a drupal module to hide items from users in a group. This not a secure solution this is more for workflow reasons.
What it does
1. Hide the edit and delete button on the contact view pane
2. Hide the edit button on search results
3. Hide all actions in the Search results the client did not want.

http://www.rivervalleytechcollective.org/node/928

you can download it here.

Still work to be done and no admin panel but you can edit the files they are only a couple of lines.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: ACL drupal and civi "Edit Activities Only"
February 24, 2009, 06:44:03 pm
Sounds interesting alfred - would you add a couple of before/after screenshots for us visual types?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: ACL drupal and civi "Edit Activities Only"
February 24, 2009, 07:19:40 pm
here are a couple
« Last Edit: February 24, 2009, 07:21:44 pm by alfred_nutile »

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: ACL drupal and civi "Edit Activities Only"
February 24, 2009, 07:23:37 pm
So did 3/ mean that in More Actions the 'Delete Contact' is not seen by these users who are in a Group?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: ACL drupal and civi "Edit Activities Only"
February 24, 2009, 07:31:18 pm
sorry this is the action menu after doing a search

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: ACL drupal and civi "Edit Activities Only"
February 24, 2009, 07:43:04 pm
Great - nice work.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

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: ACL drupal and civi "Edit Activities Only"
February 24, 2009, 08:16:33 pm

In 2.2, you should be able to achieve the same result using the searchTasks hook

http://wiki.civicrm.org/confluence/display/CRMUPCOMING/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmsearchTasks

basically your module can hide various actions based on the user role (or any other attribute)

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

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: ACL drupal and civi "Edit Activities Only"
February 24, 2009, 08:41:08 pm
Still lacking but close
1. hide relationship tab
2. hide group tab
for drupal role x

will 2.2 have these options?

i know my solution is not for security, just hoping to make a cleaner workflow.

i will try and make a drupal admin panel for this.

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: ACL drupal and civi "Edit Activities Only"
February 24, 2009, 09:15:40 pm

http://wiki.civicrm.org/confluence/display/CRMUPCOMING/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmtabs

these two hooks dont address the security aspects of it. They just modify the view of the page

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • ACL drupal and civi "Edit Activities Only"

This forum was archived on 2017-11-26.