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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Users CiviCRM Menu items don't change with security role changes
Pages: [1]

Author Topic: Users CiviCRM Menu items don't change with security role changes  (Read 1737 times)

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Users CiviCRM Menu items don't change with security role changes
September 05, 2011, 04:02:01 pm
Users CiviCRM Menu items don't change with security role changes - talking about the main top CiviCRM menu choices - not the items in the dropdowns
We've just upgraded from Drupal 5 / CiviCRM 1.9 to Drupal 7 / CiviCRM 4.0.5

When new users are created - with either old users converted or new users created, the top black and white menu items in CiviCRM match the roles as they should.  However, when the authorized roles for individual users change, either new permissions added or old permissions taken away, the top CiviCRM menu does not change to reflect the old roles.

We've tried with FireFox and Chrome and cleared the Firefox cache without result.

I'm not sure if this is an upgrade issue or an issue with 4.0.5

For now, I've given the users the following temporary direct links to menu sections that are missing from their top menu:

New Mailing
http://<oursite>/index.php?q=civicrm/mailing/send&reset=1

Draft and Unscheduled Mailings
http://<oursite>/index.php?q=civicrm/mailing/browse/unscheduled&reset=1&scheduled=false

Scheduled and Sent Mailings
http://<oursite>/index.php?q=civicrm/mailing/browse/scheduled&reset=1&scheduled=true

Archived Mailings
http://<oursite>/index.php?q=civicrm/mailing/browse/archived&reset=1

Message Templates
http://<oursite>/index.php?q=civicrm/admin/messageTemplates&reset=1

Any ideas?

= = = =
this post is a remake of the following link where I was trying to figure out the issue:
http://forum.civicrm.org/index.php/topic,21356.msg89806.html#msg89806
« Last Edit: September 06, 2011, 01:52:33 pm by Denver Dave »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Users Menu items don't change with security role changes
September 06, 2011, 03:23:23 am
Did you clear Drupal's caches? Try that and also have the users logout and login again--that may help.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: Users Menu items don't change with security role changes
September 06, 2011, 01:33:00 pm
I made a backup off Drupal and CiviCRM databases, truncated the following tables one by one and after each truncation, logged in and out - no effect on the CiviCRM Menu for the user

drupal - cache_menu - truncated - no effect on users top menu
drupal - cache - truncated - no effect on users top menu
civicrm - cache - truncated - no effect on users top menu

Hmmm.... the top menu must be coming from someplace.  Interesting that it generates properly the first time for both version converted and new users, but later changes to roles permissions is not reflected in the menu.

Seems like a menu issue rather than an access issue, since users without the menu choice, when they have permission, can go to the missing menu choices by using a direct link.
« Last Edit: September 06, 2011, 01:41:37 pm by Denver Dave »

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: Users CiviCRM Menu items don't change with security role changes
September 06, 2011, 05:33:15 pm

can u check if:

q=civicrm/menu/rebuild&reset=1

fixes the issue (i suspect it will)

once fixed, can u change roles/permissions etc and confirm it is broken again, and doing q=civicrm/menu/rebuild&reset=1 fixes it again

if so, please file an issue. I suspect we need to use a drupal hook and trap it when permissions change and rebuild the navigation menu

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

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: Users CiviCRM Menu items don't change with security role changes
September 06, 2011, 06:49:53 pm
I thought we had tried the reset before at someone's suggestion in the forum, but we must have done incorrectly.

Tried using the user with the menu issue:
http://<oursite>/?q=civicrm/menu/rebuild&reset=1
said not authorized

Tried using the admin user:
http://<oursite>/?q=civicrm/menu/rebuild&reset=1
logged out and logged in as user with menu issue and all is well.

Easy to fix now that we know what is going on - thanks.

Not sure how to submit the issue, linked to this post from release testing:
http://forum.civicrm.org/index.php/topic,21440.0.html

Seems like there is someplace we report bugs - I'll look around - here it is:
http://issues.civicrm.org/jira/browse/CRM-8820

Thank you for the help!
« Last Edit: September 06, 2011, 09:37:26 pm by Denver Dave »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Users CiviCRM Menu items don't change with security role changes

This forum was archived on 2017-11-26.