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) »
  • Users can't see/edit custom fields in a profile
Pages: [1]

Author Topic: Users can't see/edit custom fields in a profile  (Read 2121 times)

bazaarsoft

  • Guest
Users can't see/edit custom fields in a profile
March 04, 2008, 04:50:54 pm
I've got some regular fields and custom data fields represented in a profile which has used for set to View/Edit User Account. A user without "access all custom data" will not see the custom data fields on the view or edit pages of the profile. If you turn on "access all custom data", it works, but the unintentional side effect is that the "View Contact Record" link on the profile view is turned on, which allows the user to see the CiviCRM profile page (not what I want).

I'm not sure if this is a design decision (only one permission that controls read/write to custom fields), but it seems like it's a bug. One should be able to edit custom fields that are represented in a profile without having to turn on that rather global permission. But, if this is the design, then can someone explain how I can have a profile with custom fields in it without having to show the "View Contact Record" link?

BTW, I tried to file a bug, but jira was giving some error on the bug submission page. I probably don't have permission to log bugs...  ;)

bazaarsoft

  • Guest
Re: Users can't see/edit custom fields in a profile
March 04, 2008, 04:55:06 pm
DOH! Sorry guys, the jira error I saw on posting the bug happened after the bug was actually filed, so my multiple tries to file the bug are all in there. So very sorry for 5 copies of the same bug...

Maybe you SHOULD take away my bug filing permission...

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: Users can't see/edit custom fields in a profile
March 04, 2008, 10:41:58 pm
1. Please ensure that the user / role does not have "View all Contacts" permission

2. It was a design decision to have one permission for ALL custom fields. The drupal model does not scale very well to have permissions for every custom field. We'll make it more fine grained in follow on versions after we migrate all permissioning to CiviCRM (v2.2 or later)

3. Check the volunteer / volunteer login on drupal.demo.civicrm.org. This use has "access all custom data" but does not have "view all contacts" permission. So we dont show the View Contact Record link. However the user does have "access Contact Dashboard" permission and hence that link is shown

4. In general, please discuss a potential bug here, before filing an issue

lobo
« Last Edit: March 05, 2008, 08:33:54 am by Dave Greenberg »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

bazaarsoft

  • Guest
Re: Users can't see/edit custom fields in a profile
March 05, 2008, 10:05:06 am
I just checked it out, and now it's working as I thought it should. This happened once before and I'm guessing it has to do with caching (it seems to always be about whether to show or hide those links on the my account page). Strange since I don't have caching turned on for drupal yet. In any case, thanks, that did the trick.

The reason I filed a bug is because the last time I found something similar I thought the implication was that I should file a bug; sorry, I'll post before doing it next time!

jay

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Users can't see/edit custom fields in a profile

This forum was archived on 2017-11-26.