Add default roles for users
Some foodcoops want to give some roles to every member by default, without adding every users to a workgroup.
This commit is contained in:
parent
ff76fa60c0
commit
e498f9cb58
5 changed files with 35 additions and 7 deletions
|
|
@ -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 others)
|
||||
@tabs = %w(foodcoop payment tasks messages layout language roles 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) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue