mirror of
https://github.com/internetee/registry.git
synced 2025-07-13 14:35:05 +02:00
Added initial admin env
This commit is contained in:
parent
9f878f219c
commit
341841cb30
3 changed files with 4 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