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) »
  • No way to limit access to "send email" feature by drupal permissions? Or ACLS?
Pages: [1]

Author Topic: No way to limit access to "send email" feature by drupal permissions? Or ACLS?  (Read 2036 times)

GregoryHeller

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 3
No way to limit access to "send email" feature by drupal permissions? Or ACLS?
January 29, 2010, 02:48:10 pm
i'm running into a permissions issue with 3.0.4

 I have a drupal user role that has very limited permissions for civicrm.
  • Access to civicrm
  • Access to civievent
  • access CiviMail subscribe/unsubscribe pages
  • edit event participants
  • make online contributions
  • profile listings and forms
  • register for events
  • view event info
  • view event participants

The only function i want them to be able to perform beyond a basic authenticate user is creating, editing and managing events.

However, users of this role have the full civicrm admin menu, which causes confusion because they get 403 errors on most menu items, or if they search for a contact, it turns up blank rather than telling them they do not have access. 

The Big problem though is "contacts > new email", the user has access to send email to contacts via civicrm, and worse, they can see email addresses of contacts via the auto complete email to field.

"Send Email Via CiviCRM" seems like a no-brainer of a permission.  Does it exist somewhere that I am missing?  Do i need to add some kind of ACL Rule?

GregoryHeller

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 3
Re: No way to limit access to "send email" feature by drupal permissions? Or ACLS?
January 29, 2010, 03:26:38 pm
Lobo responded to me on IRC saying that the exposed email addresses may likely be fixed in 3.1.1, but that the permission issue on send email needs to be coded.

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: No way to limit access to "send email" feature by drupal permissions? Or ACLS?
January 29, 2010, 06:33:05 pm

this has come up a couple of times in the recent past and would be good to fix this and get a clean solution. the permissioning structure is such that "permission to create" events basically is treated as an administer permission, and hence you see the administer civicrm permission. A clean solution would potentially move that outside of "administer" realm

we also need to think about permissioning for search/contact tasks and group them appropriately. Currently having access to a contact gives you the ability to do a few tasks, there are only 2 permissioning groups of tasks (for edit and view)

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

websynapse

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 3
    • Ryan Kennedy
  • CiviCRM version: 4.3.7
  • CMS version: Drupal 6
Re: No way to limit access to "send email" feature by drupal permissions? Or ACLS?
October 05, 2010, 06:48:05 pm
What would you suggest is the cleanest way to removed the 'Send email' function completely? We would like to remove this from both the contact record Actions options and the and search result Actions dropdown.

grahamgilchrist

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 3
Re: No way to limit access to "send email" feature by drupal permissions? Or ACLS?
October 08, 2010, 06:05:20 am
I wrote a couple of quick drupal modules to provide enhanced fidelity to permissions. One of them allows you to set permissions for search results tasks which might help you.

This is probably not brilliantly coded or comprehensive as I just knocked it up quickly, but you might find it useful. Unfortunately, I didn't put in anything to remove the options form the dropdown on the contact summary page, but these could be added in a similar way if you can do a bit of php.

The linked module below provides an extra set of permissions under the drupal permissions screen for each search task and then modifies the civicrm search forms using the searchTasks hook to remove unpermissioned search tasks from the list.

Module download here:
http://dl.dropbox.com/u/1458022/civicrm_searchtask_perms.zip
« Last Edit: October 08, 2010, 07:14:47 am by grahamgilchrist »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: No way to limit access to "send email" feature by drupal permissions? Or ACLS?
October 08, 2010, 09:48:02 am
Thanks for sharing!

Is the code published directly in a public source code repository (github, drupal...) too ? Would make easier to manage the external patches and contributions.

Quote from: grahamgilchrist on October 08, 2010, 06:05:20 am
I wrote a couple of quick drupal modules to provide enhanced fidelity to permissions. One of them allows you to set permissions for search results tasks which might help you.

Module download here:
http://dl.dropbox.com/u/1458022/civicrm_searchtask_perms.zip
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

grahamgilchrist

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 3
Re: No way to limit access to "send email" feature by drupal permissions? Or ACLS?
October 08, 2010, 11:44:26 am
Quote from: xavier on October 08, 2010, 09:48:02 am
Thanks for sharing!

Is the code published directly in a public source code repository (github, drupal...) too ? Would make easier to manage the external patches and contributions.

Yeah that would be good but I haven't done that yet mainly because
a) I don't have access to a repository to put it in.
b) I am lazy
I guess I could set up a project on drupal.org, but I don't know how long I could maintain it, and the civicrm stuff on there seems quite outdated.
I guess I could try the free google code repository?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: No way to limit access to "send email" feature by drupal permissions? Or ACLS?
October 08, 2010, 02:01:51 pm
Hey,

both github & google code are free for open source projects and works well.

Github seems to have more momentum, but whatever is fine ;)

X+

P.S. And about the laziness, that's a reason to use SCM, not against it ;)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • No way to limit access to "send email" feature by drupal permissions? Or ACLS?

This forum was archived on 2017-11-26.