From: Toshi MARUYAMA Date: Sun, 5 Jul 2020 15:03:27 +0000 (+0000) Subject: fix closing array brace position in UsersHelper#user_settings_tabs X-Git-Tag: 4.2.0~938 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b0768eaff4af04cc46dfa99348f7628c42f0a36b;p=redmine.git fix closing array brace position in UsersHelper#user_settings_tabs git-svn-id: http://svn.redmine.org/redmine/trunk@19859 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index e773b9eee..1f5841199 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -67,9 +67,11 @@ module UsersHelper end def user_settings_tabs - tabs = [{:name => 'general', :partial => 'users/general', :label => :label_general}, - {:name => 'memberships', :partial => 'users/memberships', :label => :label_project_plural} - ] + tabs = + [ + {:name => 'general', :partial => 'users/general', :label => :label_general}, + {:name => 'memberships', :partial => 'users/memberships', :label => :label_project_plural} + ] if Group.givable.any? tabs.insert 1, {:name => 'groups', :partial => 'users/groups', :label => :label_group_plural} end