mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Authorize registrant domains
This commit is contained in:
parent
d444552b9b
commit
6cfa741397
3 changed files with 10 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
||||||
class Registrant::DomainsController < RegistrantController
|
class Registrant::DomainsController < RegistrantController
|
||||||
def index
|
def index
|
||||||
# @domains = [Domain.last]
|
authorize! :view, :registrant_domains
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -63,6 +63,7 @@ class Ability
|
||||||
end
|
end
|
||||||
|
|
||||||
def static_registrant
|
def static_registrant
|
||||||
|
can :manage, :registrant_domains
|
||||||
can :manage, :registrant_whois
|
can :manage, :registrant_whois
|
||||||
can :manage, Depp::Domain
|
can :manage, Depp::Domain
|
||||||
end
|
end
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
%th{class: 'col-xs-2'}
|
%th{class: 'col-xs-2'}
|
||||||
= t(:registrar)
|
= t(:registrar)
|
||||||
%tbody
|
%tbody
|
||||||
- @domains.each do |x|
|
-# - @domains.each do |x|
|
||||||
%tr
|
-# %tr
|
||||||
%td= link_to(x, admin_domain_path(x))
|
-# %td= link_to(x, admin_domain_path(x))
|
||||||
%td
|
-# %td
|
||||||
- if x.registrant
|
-# - if x.registrant
|
||||||
= link_to(x.registrant, [:admin, x.registrant])
|
-# = link_to(x.registrant, [:admin, x.registrant])
|
||||||
|
|
||||||
%td= l(x.valid_to, format: :short)
|
-# %td= l(x.valid_to, format: :short)
|
||||||
%td= link_to(x.registrar, admin_registrar_path(x.registrar)) if x.registrar
|
-# %td= link_to(x.registrar, admin_registrar_path(x.registrar)) if x.registrar
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue