mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 12:31:21 +02:00
Registrar refactor
This commit is contained in:
parent
6573d81b94
commit
ec4c06bb06
95 changed files with 564 additions and 539 deletions
|
@ -2,6 +2,7 @@ class Ability
|
|||
include CanCan::Ability
|
||||
|
||||
def initialize(user)
|
||||
alias_action :show, to: :view
|
||||
alias_action :show, :create, :update, :destroy, to: :crud
|
||||
|
||||
@user = user || AdminUser.new
|
||||
|
@ -46,11 +47,20 @@ class Ability
|
|||
|
||||
def registrar
|
||||
can :manage, Invoice
|
||||
can :view, :registrar_dashboard
|
||||
can :delete, :registrar_poll
|
||||
can :manage, :registrar_xml_console
|
||||
can :manage, Depp::Contact
|
||||
can :manage, Depp::Domain
|
||||
can :renew, Depp::Domain
|
||||
can :transfer, Depp::Domain
|
||||
can :manage, Depp::Keyrelay
|
||||
can :confirm, :keyrelay
|
||||
can :confirm, :transfer
|
||||
end
|
||||
|
||||
def user
|
||||
can :show, :dashboard
|
||||
can :manage, Invoice
|
||||
end
|
||||
|
||||
def customer_service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue