mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 16:39:55 +02:00
Login using api user
This commit is contained in:
parent
99850c3acb
commit
f34bca591e
3 changed files with 19 additions and 1 deletions
|
@ -11,6 +11,7 @@ class Ability
|
|||
@user.roles.each { |role| send(role) } if @user.roles
|
||||
when 'ApiUser'
|
||||
epp
|
||||
registrar
|
||||
end
|
||||
|
||||
can :show, :dashboard
|
||||
|
@ -38,6 +39,10 @@ class Ability
|
|||
end
|
||||
# rubocop: enabled Metrics/CyclomaticComplexity
|
||||
|
||||
def registrar
|
||||
can :manage, Invoice
|
||||
end
|
||||
|
||||
def user
|
||||
can :show, :dashboard
|
||||
can :manage, Invoice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue