mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Use scoped current user
This commit is contained in:
parent
dbace4cbc5
commit
7e9250deb6
1 changed files with 2 additions and 2 deletions
|
@ -18,12 +18,12 @@ module Api
|
||||||
status: :bad_request) && return
|
status: :bad_request) && return
|
||||||
end
|
end
|
||||||
|
|
||||||
@domains = associated_domains(current_user).limit(limit).offset(offset)
|
@domains = associated_domains(current_registrant_user).limit(limit).offset(offset)
|
||||||
render json: @domains
|
render json: @domains
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
domain_pool = associated_domains(current_user)
|
domain_pool = associated_domains(current_registrant_user)
|
||||||
@domain = domain_pool.find_by(uuid: params[:uuid])
|
@domain = domain_pool.find_by(uuid: params[:uuid])
|
||||||
|
|
||||||
if @domain
|
if @domain
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue