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:
parent
f5b6fbcf18
commit
e16a0fb336
12 changed files with 25 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
|||
- title t('.title')
|
||||
|
||||
%p= t('.invite_new', invite_link: link_to(t('.invite_link'), new_invite_path(id: @workgroup.id))).html_safe
|
||||
- unless FoodsoftConfig[:disable_invite]
|
||||
%p= t('.invite_new', invite_link: link_to(t('.invite_link'), new_invite_path(id: @workgroup.id))).html_safe
|
||||
= simple_form_for [:foodcoop, @workgroup] do |f|
|
||||
= render 'shared/group_form_fields', f: f
|
||||
.form-actions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue