mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 10:19:45 +02:00
Add some tests for domain transfer
This commit is contained in:
parent
b48b91878d
commit
72a37f3b08
14 changed files with 120 additions and 39 deletions
|
@ -2,8 +2,7 @@ class Client::ContactsController < ClientController
|
|||
before_action :set_contact, only: [:show, :destroy, :edit, :update]
|
||||
|
||||
def index
|
||||
@q = Contact.search(params[:q]) if current_user.admin?
|
||||
@q = current_user.registrar.contacts.search(params[:q]) unless current_user.admin?
|
||||
@q = Contact.search(params[:q])
|
||||
@contacts = @q.result.page(params[:page])
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue