Feature #20068
openEnsure that user does not get permission denied right after logging in
Description
Description of problem:
Users w/o full admin rights, created in at least some circumstances, cannot view the main welcome page. The end result is that they get a permission denied upon login.
How reproducible:
Always
Steps to Reproduce:
1. Create a role ("myrole") with these permissions:
Foreman tasks/task - view_foreman_tasks
Content Views - view_content_views, create_content_views, edit_content_views, destroy_content_views, publish_content_views, promote_or_remove_content_views
Lifecycle Environment - view_lifecycle_environments, create_lifecycle_environments, edit_lifecycle_environments, destroy_lifecycle_environments, promote_or_remove_content_views_to_environments
Product and Repositories - view_products, create_products, edit_products, destroy_products, sync_products
Location - view_locations, assign_locations
Organization - view_organizations, assign_organizations
2. Create a user that is associated with "myrole"
3. Login as user
Actual results:
Permission denied
You are not authorized to perform this action
Please request the required privileges from a Foreman administrator
Expected results:
User shouldn't get a permission denied as a first user experience!