mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Only revoke registrar certificates
This commit is contained in:
parent
240bcf7911
commit
d77bdee599
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@ module Admin
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
if @certificate.revoke! && @certificate.destroy
|
if @certificate.interface == Certificate::REGISTRAR
|
||||||
|
@certificate.revoke!
|
||||||
|
end
|
||||||
|
|
||||||
|
if @certificate.destroy
|
||||||
flash[:notice] = I18n.t('record_deleted')
|
flash[:notice] = I18n.t('record_deleted')
|
||||||
redirect_to admin_api_user_path(@api_user)
|
redirect_to admin_api_user_path(@api_user)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue