Skip to content

Commit

Permalink
Merge pull request opf#17632 from opf/bug/60609-when-opening-the-proj…
Browse files Browse the repository at this point in the history
…ect-administration-menu-redirection-is-not-on-project-lifecycle

Bug/60609 when opening the project administration menu redirection is not on project lifecycle
  • Loading branch information
toy authored Jan 16, 2025
2 parents db772a2 + 9a547a4 commit b157f0d
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 83 deletions.
4 changes: 2 additions & 2 deletions app/components/work_packages/details/tab_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def menu_items
.root
.children
.select do |node|
allowed_node?(node, User.current, project) && visible_node?(menu, node)
end
allowed_node?(node, User.current, project) && visible_node?(menu, node)
end
end

def full_screen_tab
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/admin_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def index
condition = node.condition

name === :admin_overview ||
(condition && !condition.call) ||
(condition && !condition.call(nil)) ||
hidden_admin_menu_items.include?(name.to_s)
end

Expand Down
Loading

0 comments on commit b157f0d

Please sign in to comment.