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) »
  • Error with Viewing & Editing Permissions for 2 groups
Pages: [1]

Author Topic: Error with Viewing & Editing Permissions for 2 groups  (Read 802 times)

HeidiP

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
Error with Viewing & Editing Permissions for 2 groups
September 22, 2010, 11:21:48 pm
Hi,
I'm having difficulty getting my permissions right for two groups.

Any ideas??

I'm using CiviCRM 3.2.3, Drupal 6.17 & PHP 5.2.13

I want a group 'editors' to be able to view & edit a group 'staff' and view but not edit other editors.
I also want the editors to be able to edit all activities related to the staff (this may be assigned to several editors, and with several staff involved).

Editors and staff are two different 'Access Control' groups that have been assigned to two different ACL roles.

I have tried 2 different ways:

1. Drupal permissions to 'view all contacts' + a CiviCRM ACL to allow editors to edit staff - this restricts the editing and allows me to view other editors but not edit them HOWEVER...an editor is not able to edit activities 'Assigned to' anyone else in the system (self, editor or staff). The assignee cannot edit the activity either!! On my Dashboard under Activity if I hit the edit button I get the attached non-recoverable error message.

2. I tried option 1 + CiviCRM ACL for editors to 'view all contacts' - this allows me to edit all activities, BUT, I can now also edit other editors (I do not have 'edit all contacts' in Drupal, or CiviCRM) - this does not seem right to me

It seems as though if I add the CiviCRM ACL 'view all contacts' I can view and edit Activities and staff which is great...but I can also view and edit other editors, which is not what I want.

Is there any possible reason that that CiviCRM ACL 'view all contacts' is adding editing privileges?
Am I missing something?

Any help or suggestions would be greatly appreciated.

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: Error with Viewing & Editing Permissions for 2 groups
September 23, 2010, 10:22:59 am

seems like the activity view/edit does not respect the drupal permission / acl properly and is a bug / missing feature

if important to you, please consider investigating and filing an issue along with a patch. If you are not a developer, please consider hiring one.

If you cannot do the above, please do file an issue with notes on this behavior. We'll try to check and fix this in a future release (3.4 / 4.x) at the earliest

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

HeidiP

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
Re: Error with Viewing & Editing Permissions for 2 groups
September 23, 2010, 04:46:55 pm
Hi Lobo,
Thanks for your reply, have you come across anyone else with this issue?
I'm relatively new to CiviCRM and I will look at developing a patch however this could take some time.

In the meantime I will file an issue with notes and will attach several screenshots to explain what is happening.
By doing this will other developers also be able to work on a Patch?

Heidi

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: Error with Viewing & Editing Permissions for 2 groups
September 23, 2010, 09:12:53 pm

No. The ACL's etc have been developed and fairly focussed on contact level stuff. That said permitting editing of an activity with view contact permission is a bug

yeah, filing an issue with a detailed explanation will help a developer when they look at the issue for a future release

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) »
  • Error with Viewing & Editing Permissions for 2 groups

This forum was archived on 2017-11-26.