I use civicrm custom fields which are made into a civicrm profile which outputs these fields to also display under a user's drupal account.

For example, I have my civicrm mailing list options showing for each user under a Mailing Lists tab in their Account.

These custom fields are set in with civicrm permissions "User and User Admin Only". However, when I masquerade as a user, I cannot view these custom fields in the drupal account, even though I should be able to. If i actually manually log in as that user, I can see the fields such as mailing list options.

Would there be any way of getting the masquerade module to also put these permissions through so I can view when masquerading? (there's probably some technical term i should be using here but am not a programmer). It would be very handy instead of having to switch back into civicrm.

Thanks for the great module - it is very useful already.

Comments

deekayen’s picture

Status: Active » Postponed (maintainer needs more info)

I only had CiviCRM 2.2 beta 3 installed, but it looked like all I had to do was modify the userID parameter of a huge array that CiviCRM sets in the Drupal sessions table. It's in the Drupal 5.x and 6.x branches ATM, and I'm working on HEAD a bit longer to make some other 7.x updates. The -dev snapshots update every 12 hours, but if you download it from http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/masquerade/..., and report back, then I know if this can be closed.

hedgefrog’s picture

Hi, wow thanks for the fast response. I tried that download but unfortunately it's not working for me, as in I still can't see private civicrm profile details in masquerade mode. I'm on civicrm 2.0.6.

deekayen’s picture

Status: Postponed (maintainer needs more info) » Active

I'm not sure where to go from here. Prepare for this request to sit idle for a while.

hedgefrog’s picture

Ok, at least i can switch back and forth masqing in the meantime.
In case you haven't seen it, I found this comment about civicrm which might explain part of the problem. http://issues.civicrm.org/jira/browse/CRM-3645

deviantintegral’s picture

Version: 5.x-1.3 » 6.x-1.x-dev
Status: Active » Closed (duplicate)

Given the complexity of CiviCRM, I think the best way to solve this is to provide hooks for another module to integrate fully with CiviCRM. I'm marking this as a duplicate of #324292: Adding hooks into Masquerade.

j0nathan’s picture

Subscribing. Same request for integration with CiviCRM. A little difference for me: my user has full admin permissions in CiviCRM so when I masquerade as a user with low privileges to test, I cannot because I still see every fields and every profiles.

  • Commit 0e5e823 on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by deekayen:
    #390980 integrate with CiviCRM upgrade to support more Drupal 7 updates
    
    
  • Commit 26f1ab5 on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by deekayen:
    #392738 - increase sid column to match core sessions table length #...

  • Commit 0e5e823 on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by deekayen:
    #390980 integrate with CiviCRM upgrade to support more Drupal 7 updates
    
    
  • Commit 26f1ab5 on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by deekayen:
    #392738 - increase sid column to match core sessions table length #...