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) »
  • Navigation Menu reset?
Pages: [1]

Author Topic: Navigation Menu reset?  (Read 4641 times)

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Navigation Menu reset?
March 03, 2010, 07:16:34 pm
This issue is an issue within an issue, I'm afraid. Here's the easy one:

I removed access to the Administer Menu. Not deleted, but I added every security 'AND' clause to see if it would dissapear. Boy, did it dissapear. I've reset the permissions in the civicrm_navigation table, and hopefully fixed my 'attempt' to fix the civicrm_menu table, but the administer menu is still missing from my top menu.

The REASON I added all the clauses, is because in using Joomla, I'm trying to figure out if I can restrict access to my civi menu items like Drupal can. The short answer after searching forums seems to be 'not yet', as Joomla is hailing the 1.6 release as the second coming. Since Jan 2009.

Excuse the bitterness. It's late, and I'm frustrated. Can anyone help me reset my top menu for a start? :)


~ross

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Navigation Menu reset?
March 03, 2010, 09:17:05 pm
You'll need to edit / update the civicrm_navigation table directly in MySQL or phpMyAdmin. If 'Administer' is the only one you changed permissions on, you can probably just update permission and permission_operator columns ('administer CiviCRM' and NULL). HTH
Protect your investment in CiviCRM by  becoming a Member!

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: Navigation Menu reset?
March 04, 2010, 06:54:34 am
Thanks Dave, I gave that a shot. I had already tried to update the permission column, but not the permission_operator. Sadly, I still have no Administer menu item.

What I DID do first (after searching the civi tables for options) was find the menu options in the civicrm_menu table, and change the access_arguments column to... well.... something else I found within the table. Yes, I made a big mess, but I had hopefully set it properly back to what it needed to be again, and am wondering if this is the issue.

If anyone who has this working could paste the value of access_arguments in civicrm_menu where title = 'Administer CiviCRM'... that might get me working again.


cheers

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Navigation Menu reset?
March 04, 2010, 08:26:19 am
This is what i have in my working 3.1 site DB for that column for row where title = 'Administer CiviCRM'
Code: [Select]
a:2:{i:0;a:2:{i:0;s:18:"administer CiviCRM";i:1;s:14:"access CiviCRM";}i:1;s:3:"and";}

If you haven't tried hitting the menu rebuild url, do that first:

http://..../civicrm/menu/rebuild?reset=1
Protect your investment in CiviCRM by  becoming a Member!

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: Navigation Menu reset?
March 04, 2010, 09:32:04 am
I get a 404 on that menu rebuild url you gave me.

but I'm doing http://www.website.com/joomla/administrator/components/com_civicrm/civicrm/menu/rebuild?reset=1

wrong?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Navigation Menu reset?
March 04, 2010, 09:54:10 am
For Joomla installs, the URL pattern is to use task=...:

Example on our joomla demo:
http://joomla.demo.civicrm.org/administrator/index2.php?option=com_civicrm&task=civicrm/menu/rebuild&reset=1
Protect your investment in CiviCRM by  becoming a Member!

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: Navigation Menu reset?
March 04, 2010, 10:54:57 am
Fantastic! The menu has been rebuilt! Thanks, Dave.

any advice on securing the civi menu in joomla with user levels? :)

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Navigation Menu reset?
March 04, 2010, 11:36:57 am
I don't think this is do-able w/o significant code modifications.
Protect your investment in CiviCRM by  becoming a Member!

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: Navigation Menu reset?
March 05, 2010, 06:32:38 am
I'm scrounging around in the code as we speak, and I've found that the password field is generated by $form.password.html, but I cannot find $form or where it is declared.

I'm also doing a quick look into forcing CSS to make the field a password field, but to no avail.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Navigation Menu reset?

This forum was archived on 2017-11-26.