mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Merge branch 'master' of github.com:internetee/registry
This commit is contained in:
commit
58f54c17e4
4 changed files with 12 additions and 2 deletions
|
@ -6,7 +6,7 @@ class Ability
|
|||
alias_action :create, :read, :update, :destroy, :to => :crud
|
||||
|
||||
user ||= User.new
|
||||
if user.admin?
|
||||
if REGISTRY_ENV == :admin && user.admin?
|
||||
can :manage, Domain
|
||||
can :switch, :registrar
|
||||
can :crud, DomainTransfer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue