mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Registrar: Allow to view other contacts of domain
This commit is contained in:
parent
bd9c9cd585
commit
e50cf7d200
3 changed files with 11 additions and 5 deletions
|
@ -5,7 +5,8 @@ class Registrant::ContactsController < RegistrantController
|
|||
skip_authorization_check only: %i[edit update]
|
||||
|
||||
def show
|
||||
@contact = current_user_contacts.find(params[:id])
|
||||
@contact = domain.contacts.find(params[:id])
|
||||
@requester_contact = domain.contacts.find_by(ident: current_registrant_user.ident).id
|
||||
authorize! :read, @contact
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue