Rename config tab roles to security

This commit is contained in:
Patrick Gansterer 2020-08-07 01:03:00 +02:00
parent 4c567fece1
commit f221a081dd
5 changed files with 15 additions and 15 deletions

View file

@ -30,7 +30,7 @@ class Admin::ConfigsController < Admin::BaseController
# Set configuration tab names as `@tabs`
def get_tabs
@tabs = %w(foodcoop payment tasks messages layout language roles others)
@tabs = %w(foodcoop payment tasks messages layout language security others)
# allow engines to modify this list
engines = Rails::Engine.subclasses.map(&:instance).select { |e| e.respond_to?(:configuration) }
engines.each { |e| e.configuration(@tabs, self) }

View file

@ -1,5 +1,5 @@
%h4= t '.access_to_title'
= t '.access_to_paragraph'
%h4= t '.default_role_title'
= t '.default_role_paragraph'
= config_input form, :default_role_suppliers, as: :boolean
= config_input form, :default_role_article_meta, as: :boolean
= config_input form, :default_role_orders, as: :boolean