mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Do not allow adding new API users outside of registrar details view
This feature is not needed.
This commit is contained in:
parent
90f4480f37
commit
eb342cdbd4
3 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -2,7 +2,6 @@ en:
|
|||
admin:
|
||||
api_users:
|
||||
index:
|
||||
new_btn: New API user
|
||||
title: API users
|
||||
active: Active
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue