0
0
Fork 0

Add admin function to deactivate all invites (#8279)

Fix #8261
This commit is contained in:
Eugen Rochko 2018-08-19 00:58:53 +02:00 committed by GitHub
parent c6eab9e0aa
commit 9dd5639f90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 12 deletions

View file

@ -134,7 +134,12 @@ Rails.application.routes.draw do
resources :email_domain_blocks, only: [:index, :new, :create, :destroy]
resources :action_logs, only: [:index]
resource :settings, only: [:edit, :update]
resources :invites, only: [:index, :create, :destroy]
resources :invites, only: [:index, :create, :destroy] do
collection do
post :deactivate_all
end
end
resources :relays, only: [:index, :new, :create, :destroy] do
member do