mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Story #105846070 - ensure that show can also see all the users domains
This commit is contained in:
parent
c8a1ec24dd
commit
13f50dec8c
1 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@ class Registrant::DomainsController < RegistrantController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@domain = Domain.find(params[:id])
|
@domain = Domain.find(params[:id])
|
||||||
if !(current_user.domains.include?(@domain) || @domain.valid?)
|
if !(domains.include?(@domain) || @domain.valid?)
|
||||||
redirect_to registrant_domains_path
|
redirect_to registrant_domains_path
|
||||||
end
|
end
|
||||||
authorize! :read, @domain
|
authorize! :read, @domain
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue