Add config option to disable the invites

Some foodcoops require that an admin adds all users to have more control
over the users.
This commit is contained in:
Patrick Gansterer 2016-03-06 13:56:33 +01:00
parent f5b6fbcf18
commit e16a0fb336
12 changed files with 25 additions and 11 deletions

View file

@ -1,4 +1,5 @@
%p= t('.first_paragraph', url: link_to(t('.here'), new_invite_path(id: @workgroup.id), remote: true)).html_safe
- unless FoodsoftConfig[:disable_invite]
%p= t('.first_paragraph', url: link_to(t('.here'), new_invite_path(id: @workgroup.id), remote: true)).html_safe
= simple_form_for [:admin, @workgroup] do |f|
- captured = capture do
%h4= t 'admin.access_to'