Created attachment 911371 [details]
normal user can see content and Hosts menu. Content Menu doesn't list any other entity to select but hosts menus does show the 'All Hosts"
Description of problem:
I created a simple user in "Any context" mode and did not assign any location, org and roles. But following menus are visible to that user.
Ideally user shouldn't be allowed to have access to any of menu items without any permission. Though content menu doesn't list sub menus but Hosts menu shows "All Hosts" and user can see the created hosts.
Version-Release number of selected component (if applicable):
sat6 beta snap10 compose2
Steps to Reproduce:
1. Login with admin user
2. create a user in "Any context" and do not assign location and org
3. logout with admin user and login with newly created user
User can see Content menu and Hosts --> All hosts
user shouldn't be allowed to have access to any of menu items without any permission
The user probably has the view_hosts permission inherited through the anonymous role.
I've split this BZ into two - the stuff about "all hosts" is now bug #1112750. This bug will remain for the content menu issue, which if I understand the description correctly, is that an empty top-level menu is present even when the user has permission for nothing inside it.
Created redmine issue http://projects.theforeman.org/issues/6362 from this bug
moving to 6.1
Moving to POST since upstream bug http://projects.theforeman.org/issues/6362 has been closed
Applied in changeset commit:795b9287bae5ee941331e4291eec6570e8a1ce62.
This bug is slated to be released with Satellite 6.1.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.