Project

General

Profile

Bug #25346

User with restricted permissions sees all menu items

Added by Timo Goebel about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Authorization
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

This is possibly a regression: A user with just a `view_hosts` permission can see every menu item. Previously just `Hosts` was displayed.


Related issues

Related to Foreman - Task #23445: Change vertical menu to react implementationClosed
Related to Foreman - Refactor #25355: remove home helperClosed

Associated revisions

Revision d46731c6 (diff)
Added by Tomer Brisker about 2 months ago

Fixes #25346 - Correctly render menu for non-admin users

The new menu implementation in react did not take into account user
permissions as to which menues should be displayed. This also moves the
logic for deciding what to display into the menu classes.

History

#1 Updated by Timo Goebel about 2 months ago

  • Target version set to 1.20.0

#2 Updated by Timo Goebel about 2 months ago

  • Related to Task #23445: Change vertical menu to react implementation added

#3 Updated by The Foreman Bot about 2 months ago

  • Assignee set to Tomer Brisker
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6184 added

#4 Updated by Tomer Brisker about 2 months ago

#5 Updated by Timo Goebel about 2 months ago

  • Fixed in Releases 1.21.0 added

#6 Updated by Tomer Brisker about 2 months ago

  • Status changed from Ready For Testing to Closed

#7 Updated by Tomer Brisker about 2 months ago

  • Fixed in Releases 1.20.0 added
  • Fixed in Releases deleted (1.21.0)

Also available in: Atom PDF