mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-08 07:21:03 +08:00
Merge pull request #8830 from aignatov-bio/ai-sci-12281-fix-top-navigation-for-users-without-team
Fix top navigation for users without team [SCI-12281]
This commit is contained in:
commit
ceab8b0a6d
1 changed files with 2 additions and 1 deletions
|
|
@ -60,8 +60,9 @@ class NavigationsController < ApplicationController
|
|||
end
|
||||
|
||||
def settings_menu_links
|
||||
|
||||
links = [{ name: I18n.t('users.settings.sidebar.teams'), url: teams_path }]
|
||||
if can_manage_team?(current_team)
|
||||
if current_team && can_manage_team?(current_team)
|
||||
links << { name: I18n.t('users.settings.sidebar.account_nav.automations'), url: automations_team_path(current_team) }
|
||||
links << { name: I18n.t('users.settings.sidebar.groups'), url: users_settings_team_user_groups_path(current_team) }
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue