Bug 1105251 - Inverting the admin flag has no effect on menu cache
Summary: Inverting the admin flag has no effect on menu cache
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Greg Sutcliffe
QA Contact: Corey Welton
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-05 16:59 UTC by Daniel Lobato Garcia
Modified: 2019-09-25 20:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-11 12:23:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6065 0 None None None 2016-04-22 16:27:45 UTC
Red Hat Bugzilla 1111704 0 medium CLOSED Restart of foreman required after changing a user's role(s) for menu items to show up 2021-02-22 00:41:40 UTC

Internal Links: 1111704

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.


Note You need to log in before you can comment on or make changes to this bug.