mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Domain transfer improvements, various test fixes
This commit is contained in:
parent
187316078b
commit
0adca73f88
5 changed files with 44 additions and 19 deletions
|
@ -205,6 +205,7 @@ class Domain < ActiveRecord::Base
|
|||
end
|
||||
|
||||
### TRANSFER ###
|
||||
|
||||
def transfer(params)
|
||||
return false unless authenticate(params[:pw])
|
||||
|
||||
|
@ -212,6 +213,8 @@ class Domain < ActiveRecord::Base
|
|||
approve_pending_transfer and return true
|
||||
end
|
||||
|
||||
return true if pending_transfer
|
||||
|
||||
wait_time = SettingGroup.domain_general.setting(:transfer_wait_time).value.to_i
|
||||
|
||||
if wait_time > 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue