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 (Moderator: Dave Greenberg) »
  • How to disable "Send email to contacts" for some user roles?
Pages: [1]

Author Topic: How to disable "Send email to contacts" for some user roles?  (Read 2856 times)

marc

  • Guest
How to disable "Send email to contacts" for some user roles?
October 22, 2009, 02:03:58 am
Hi,

as this is my first post, apologies if I put this in the wrong spot.

I am using civi3 on drupal.

On our website we don't want everyone to do mass emailing, so we have already disabled mass mailing in user permissions for some roles. Unfortunately, everyone who is logged in - whatever their role - can get around this, by searching for contacts, then checking "All results" and choosing to "Send email to contacts" in the dropdown on the search results page.

Is it possible to disable this feature for some user roles, but not for all, while still allowing everyone to search for everyone?

Many thanks,

Marc


Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: How to disable "Send email to contacts" for some user roles?
October 23, 2009, 01:23:09 am
Hi Marc,

Currently in CiviCRM those have 'view all contact' permission can send an email.

Apply the patch in attached file.

You will find  'send an email' permission in http://domain/admin/user/permissions

Then give permission of  'send an email' to specific user role

Sunil


The community around a product more important than the product itself?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How to disable "Send email to contacts" for some user roles?
October 23, 2009, 09:07:33 am
Swell,

I'd suggest to have it standard, will it be added in the core ?

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: How to disable "Send email to contacts" for some user roles?
October 23, 2009, 12:13:27 pm

we'll need to think about it and do some task based permissioning rather than just adding this as a one-off

we currently have approx 20 tasks based on search results and would be good to have some decent permissioning behind it that is customizable

would also be good to allow all search results to have those tasks exposed in all cases (even though most tasks are contact specific)

xavier, wanna spec this out and start working on the implementation

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

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: How to disable "Send email to contacts" for some user roles?
October 23, 2009, 01:50:32 pm
Does this 'send an email' permission via the patch cover both the 'one to one' email available via the 'send an email' on each 'contacts' record' and the 'send an email' via the More Actions - or is it just the latter?
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

marc

  • Guest
Re: How to disable "Send email to contacts" for some user roles?
October 25, 2009, 07:36:02 am
Thanks Sunil, the patch works perfectly!

Marc

johnf

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
Re: How to disable "Send email to contacts" for some user roles?
July 08, 2010, 01:18:55 pm
I had this need also - disable sending of any email for a role. This saved me. Thanks. (Had to manually apply some of the patches as Civi version has advanced.)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • How to disable "Send email to contacts" for some user roles?

This forum was archived on 2017-11-26.