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) »
  • Complete Backend Access in the Frontend of Joomla
Pages: [1]

Author Topic: Complete Backend Access in the Frontend of Joomla  (Read 6094 times)

docileroo

  • Guest
Complete Backend Access in the Frontend of Joomla
June 18, 2009, 08:43:12 am
I've been hunting for an answer, but most questions seem addressed to specific functions.  If anyone knows where to point me, I would greatly appreciate it!

I have a number of Joomla users who have Publisher accounts.  I'd like to give them access to the entire CiviCRM application from the frontend in Joomla.  Is this possible?  I don't want them in the Joomla backend at all.

Creating a link to: http://goodthingsforpeople.org/administrator/index.php?option=com_civicrm&task=civicrm/dashboard&reset=1 doesn't work.

Creating a link to: http://caucasushope.org/index.php?option=com_civicrm&task=civicrm/dashboard&reset=1 just gives me a menu of links that produce the, "You do not have permission to execute this url." message.

Thanks for any help!

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: Complete Backend Access in the Frontend of Joomla
June 18, 2009, 09:15:29 am

you will need to write joomla specific code for this and figure out your permissioning structure and what functionality you want to expose and to whom.

alternatively you can modify components/com_civicrm/civicrm.php

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

docileroo

  • Guest
Re: Complete Backend Access in the Frontend of Joomla
June 18, 2009, 01:02:41 pm
I'm certainly open to modifying civicrm.php and I would guess that I need to start with:
    // check permission
    if ( ! civicrm_check_permission( $args ) ) {
        echo "You do not have permission to execute this url.";
        return;
    }
But any advice on what needs to be done?  Is there a howto published?  Do most organizations simply give all of their staff access to the Joomla backend?  Seems risky.

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: Complete Backend Access in the Frontend of Joomla
June 18, 2009, 06:26:40 pm

yes, i suspect most organizations give staff access to the joomla backend

Giving unlimited access to users in the frontend is potentially risky. But if you know what you are doing and confident about your changes, go for it

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

docileroo

  • Guest
Re: Complete Backend Access in the Frontend of Joomla
June 19, 2009, 08:59:47 am
Should I just comment this entire section out?  What specifically needs to be done to enable full access?  I'm certain you are a genius and I am not, but I want to get at that piece of knowledge in your head!   :D

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: Complete Backend Access in the Frontend of Joomla
June 19, 2009, 12:52:22 pm

Commenting it out opens up all of CiviCRM to your entire user base. Thats way too dangerous for us to even think about doing it. If you are not a skilled programmer, i would avoid going down that route

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

docileroo

  • Guest
Re: Complete Backend Access in the Frontend of Joomla
June 25, 2009, 08:06:40 pm
Well, I attempted to simply comment out the following section in in civicrm.php.  I really don't care if my users have access to all of CiviCRM.  But I still get the "You do not have permission to execute this url." message.  So, what else do I need to change other than the lines below?

    // check permission
    //if ( ! civicrm_check_permission( $args ) ) {
    //    echo "You do not have permission to execute this url.";
    //    return;
    //}

Is there a better way to provide full access from the frontend?

andrewg

  • Guest
Re: Complete Backend Access in the Frontend of Joomla
August 21, 2009, 07:02:49 pm
Hi,

I'm also interested in finding a way to provide specific users access to Civi to update, edit and create any members by logging in to CiviCRM from a Joomla Front-End..

How can this be accomplished?

Thanks,


Andrew

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Complete Backend Access in the Frontend of Joomla
August 22, 2009, 04:39:44 pm
Quote from: Donald Lobo on June 18, 2009, 06:26:40 pm

yes, i suspect most organizations give staff access to the joomla backend

Giving unlimited access to users in the frontend is potentially risky. But if you know what you are doing and confident about your changes, go for it

lobo


The one organization that I have worked with that needed a good number of people to have access gave their typical users "Manager" access to the backend.  Managers in Joomla are essentially publishers with backend access.  They have no ability to install or delete components, can't access Global Settings, etc.  Seems like the easiest solution.  :)
Lead Developer, C3 Design.
Twitter: @FatherShawn

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Complete Backend Access in the Frontend of Joomla

This forum was archived on 2017-11-26.