From b0768eaff4af04cc46dfa99348f7628c42f0a36b Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 5 Jul 2020 15:03:27 +0000 Subject: [PATCH] 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 --- app/helpers/users_helper.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.39.5