mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +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
|
||||
|
||||
def destroy
|
||||
if @certificate.revoke! && @certificate.destroy
|
||||
if @certificate.interface == Certificate::REGISTRAR
|
||||
@certificate.revoke!
|
||||
end
|
||||
|
||||
if @certificate.destroy
|
||||
flash[:notice] = I18n.t('record_deleted')
|
||||
redirect_to admin_api_user_path(@api_user)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue