Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1105251

Summary: Inverting the admin flag has no effect on menu cache
Product: Red Hat Satellite Reporter: Daniel Lobato Garcia <dlobatog>
Component: WebUIAssignee: Greg Sutcliffe <gsutclif>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.3CC: bbuckingham, cwelton, dlobatog, jmontleo
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6065
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:23:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Lobato Garcia 2014-06-05 16:59:38 UTC
The TopbarSweeper cache clearing system only ever acts on User.current. This means if an admin toggles the admin flag on another user/group, that user's topbar does not refresh and show updated entries until the cache naturally times out (or is cleared with =foreman-rake tmp:cache:clear=).

Steps to reproduce:
1. Create a user without admin flag or roles
2. In a separate browser sesson, log in with that user.
  => observe they can only see Hosts and Bookmarks
3. Create a user group, give it the admin flag, and assign the above user to it
4. Refresh the user's page

Expected results:
The user can now see all menu entries on the topbar

Actual result:
The user still only sees Hosts and Bookmarks

Comment 1 Daniel Lobato Garcia 2014-06-05 16:59:39 UTC
Created from redmine issue http://projects.theforeman.org/issues/6065

Comment 3 Bryan Kearney 2014-07-23 00:02:45 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6065 has been closed
-------------
Greg Sutcliffe
https://github.com/theforeman/foreman/pull/1495/files
-------------
Greg Sutcliffe
Applied in changeset commit:70acceb5de46868358714ef2aaef0387cbcda4c3.

Comment 5 Corey Welton 2014-08-06 19:26:14 UTC
Verified in Satellite-6.0.4-RHEL-6-20140730.0

Comment 7 Bryan Kearney 2014-09-11 12:23:38 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.