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) »
  • Edit button visible for anybody in search listing
Pages: [1]

Author Topic: Edit button visible for anybody in search listing  (Read 1025 times)

Roland-ST

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
Edit button visible for anybody in search listing
June 26, 2009, 05:42:26 am
I need a help.

I'm using Joomla 1.5.11 and CiviCrm 2.2.6.
I realised that CiviCrm haven't support ACL in Joomla
I have a simple task for CiviCrm.

1. Collecting information about universities in my region
2. Create search profile to give ability for every one search it in DB

I need that person from university who put data (filled profile for organisations) also will have ability to edit it from front page after.

I see the only way to do it in search listing by checking "Include profile edit links in search results?"  in search profile.

Problem is that everybody can see "edit" button, even users who not login to site.

Is there another way to allow certain user to create and edit profile for certain organisation from front page?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Edit button visible for anybody in search listing
June 26, 2009, 11:16:39 am
You'll probably need to do some coding to make this flow work - but one approach that might get you close is to have the "editors" use the Contact Dashboard and give them a permissioned relationship with "their" university.

Steps to "experiment" with this manually:
- create front-end link for CiviCRM Contact Dashboard and give access to authenticated front-end users
- create a University (org) record and add an Employee relationship to it for a (test) contact who as a front-end account on your site. Check the permission to "can view and update information".
- log to front-end as the test user and click the Contact Dashboard front-end menu item (of course you can name it something else)
- you'll see a section for "Your Contacts / Organizations" with the university listed and a link to "Edit Contact Information"

Things you'll need to solve if you go down this road:
1. You can potentially use an online contribution page with the wording changed and "non-monetary transaction" checked AND the "contribute on behalf of" feature enabled as a way to initially collect info from the person (about themselves and the university). This approach will create both records and the permissioned relationship automatically

- Otherwise you'll need to manually create the relationship - or potentially implement a civicrm hook to do this

2. Currently the form fields provided for the related organization are hard-coded. At some point this will switch to using a profile - which will give you the ability to control the fields (and include custom fields etc.). However for now, if you need additional fields you'll need to either put resources into moving this to using a profile (see discussions on this elsewhere on the forum) or hack the code to add / remove fields.
Protect your investment in CiviCRM by  becoming a Member!

Roland-ST

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
Re: Edit button visible for anybody in search listing
June 30, 2009, 02:30:46 am
Thanks Dave, I'll try to perform this

Roland-ST

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
Can I adjust Edit page for Organization?
June 30, 2009, 03:22:14 am
I've made relationship between Individual and Organization as "Employee of". Then I created Dashboard menu item at front-end. And yes I can edit Organization data, but it consist of just general set of fields (Organization Name and Contact information). I need to manage this page.
- Can I include selected custom data fields in it?
- Can I exclude some inbuilt fields?
- Can I define captions for inbuilt fields?   (Organization name ->University name, for example)
 

Roland-ST

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
Re: Edit button visible for anybody in search listing
June 30, 2009, 03:42:21 am
Sorry I skiped point 2 of your answer

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Edit button visible for anybody in search listing

This forum was archived on 2017-11-26.