Bug #6065
closedInverting the admin flag has no effect on menu cache
Description
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
Updated by Greg Sutcliffe over 10 years ago
- Status changed from New to Assigned
- Assignee set to Greg Sutcliffe
- Target version set to 1.8.2
- Difficulty set to easy
Updated by Greg Sutcliffe over 10 years ago
- Status changed from Assigned to Ready For Testing
Updated by marcelo veglienzone over 10 years ago
I can confirm the patch works as expected.
Updated by Daniel Lobato Garcia over 10 years ago
- Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1105251
Updated by Anonymous over 10 years ago
- Target version changed from 1.8.2 to 1.8.1
Updated by Dominic Cleal over 10 years ago
- Translation missing: en.field_release set to 18
Updated by Anonymous over 10 years ago
- Target version changed from 1.8.1 to 1.8.0
Updated by The Foreman Bot over 10 years ago
- Pull request https://github.com/theforeman/foreman/pull/1495 added
Updated by Greg Sutcliffe over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 70acceb5de46868358714ef2aaef0387cbcda4c3.
Updated by Dominic Cleal over 10 years ago
- Related to Bug #6831: When creating a new organization as an admin, the switcher doesn't list it added
Updated by Dominic Cleal over 10 years ago
- Related to Bug #6873: Error during db:seed from 1.4 to 1.6: undefined method `expire_topbar_cache' for nil:NilClass added