Nest API users under registrar in admin area

This commit is contained in:
Artur Beljajev 2019-12-09 21:34:36 +02:00
parent c680b688e4
commit de6934625c
10 changed files with 65 additions and 62 deletions

View file

@ -34,7 +34,7 @@ module Admin
if @certificate.destroy
flash[:notice] = I18n.t('record_deleted')
redirect_to admin_api_user_path(@api_user)
redirect_to admin_registrar_api_user_path(@api_user.registrar, @api_user)
else
flash.now[:alert] = I18n.t('failed_to_delete_record')
render 'show'