Do not allow adding new API users outside of registrar details view

This feature is not needed.
This commit is contained in:
Artur Beljajev 2019-12-09 20:10:05 +02:00
parent 90f4480f37
commit eb342cdbd4
3 changed files with 1 additions and 4 deletions

View file

@ -1,5 +1,3 @@
- content_for :actions do
= link_to(t('.new_btn'), new_admin_api_user_path, class: 'btn btn-primary')
= render 'shared/title', name: t('.title')
.row

View file

@ -2,7 +2,6 @@ en:
admin:
api_users:
index:
new_btn: New API user
title: API users
active: Active

View file

@ -270,7 +270,7 @@ Rails.application.routes.draw do
end
resources :admin_users
resources :api_users do
resources :api_users, except: %i[new] do
resources :certificates do
member do
post 'sign'