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 Drupal Modules (Moderator: Donald Lobo) »
  • Exposing certain Custom searches
Pages: [1]

Author Topic: Exposing certain Custom searches  (Read 1045 times)

j.payne

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
Exposing certain Custom searches
September 09, 2010, 10:05:56 am
I'm looking for a way to expose certain custom searches to anonymous users and denying access to other searches. Is there even a drupal or civi access permission associated with custom searches. All I have noticed is that giving anonymous users to access civi content through drupal permissions gives them access to /civicrm/contact/search/custom/list?reset=1

My initial thoughts are to use civi access to create ACL roles for everyone that would expose only the data I want them to be able to see from the public custom search and then add some code to the other custom searches to check for a specific drupal permission that I could add in somewhere.

Does this make sense to do it this way, or is there a more sensible and straight forward way to do this?

regards.

btw. the site I am working on uses civi version 2.2.5
« Last Edit: September 09, 2010, 10:13:24 am by j.payne »

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: Exposing certain Custom searches
September 09, 2010, 10:50:22 am

depends on what you want the folks to do with the results of the search?

if not a whole lot, CiviReport is probably a better option, IMO

You might want to consider upgrading, since the number of fixes/improvements since 2.2.x are quite a bit

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

j.payne

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
Re: Exposing certain Custom searches
September 14, 2010, 08:52:52 am
I would love to upgrade their site to the newest version except they have quite a bit of custom qcubed code that hooks in to their current civi install. This makes it almost impossible to upgrade at the moment. I don't know why it was done this way, but it is my guess that the original developers didn't know drupal or civi very well. It will take some time to go through those thousands of lines of custom code and break it down into something more sensible.

In the meantime I need a way to keep their site and info secure, while expose only what is needed.

What I a getting from your reply Lobo is that there isn't a configurable way to do this using custom searches.

thanks, I'll check out the CiviReport functionality.

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: Exposing certain Custom searches
September 14, 2010, 12:52:08 pm
can Views give you what you want? the View can be restricted by Drupal role - and you can expose some fields as filters for your search
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

j.payne

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
Re: Exposing certain Custom searches
September 20, 2010, 06:45:45 am
Views might be able to be used for the search, but I also need the functionality to send all the contacts returned an email, and the ability to select from several customized emails.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Exposing certain Custom searches

This forum was archived on 2017-11-26.