Files
redmine/plugins/redmine_messenger/app/helpers/messenger_projects_helper.rb
Roman Vaníček 18a64f6d16
All checks were successful
continuous-integration/drone/push Build is passing
Added Messenger plugin.
2023-02-27 22:36:26 +01:00

17 lines
356 B
Ruby

# frozen_string_literal: true
module MessengerProjectsHelper
def project_settings_tabs
tabs = super
if User.current.allowed_to? :manage_messenger, @project
tabs << { name: 'messenger',
action: :show,
partial: 'messenger_settings/show',
label: :label_messenger }
end
tabs
end
end