mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
added abbility for added extenstions prohibited status
This commit is contained in:
parent
f9436062a6
commit
1bb5dddd58
10 changed files with 32 additions and 25 deletions
|
@ -8,9 +8,9 @@ module Api
|
|||
before_action :authorized_to_manage_locks?
|
||||
|
||||
def create
|
||||
p "============"
|
||||
extensionsProhibited = params[:extensionsProhibited]
|
||||
|
||||
if @domain.apply_registry_lock
|
||||
if @domain.apply_registry_lock(extensionsProhibited: extensionsProhibited.to_s.downcase == "true")
|
||||
render json: serialized_domain(@domain)
|
||||
else
|
||||
render json: { errors: [{ base: ['Domain cannot be locked'] }] },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue