mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
Find requester contact id solely by ident
This commit is contained in:
parent
7930c4d8b6
commit
d0053def99
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ class Registrant::ContactsController < RegistrantController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@contact = domain.contacts.find(params[:id])
|
@contact = domain.contacts.find(params[:id])
|
||||||
@requester_contact = domain.contacts.find_by(ident: current_registrant_user.ident).id
|
@requester_contact = Contact.find_by(ident: current_registrant_user.ident).id
|
||||||
authorize! :read, @contact
|
authorize! :read, @contact
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue