mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 06:56:23 +02:00
Updated REPP API for new registrar portal
This commit is contained in:
parent
e17b21436d
commit
a5ffce290d
61 changed files with 1269 additions and 408 deletions
|
@ -30,11 +30,11 @@ class ApiUser < User
|
|||
|
||||
alias_attribute :login, :username
|
||||
|
||||
SUPER = 'super'
|
||||
EPP = 'epp'
|
||||
BILLING = 'billing'
|
||||
SUPER = 'super'.freeze
|
||||
EPP = 'epp'.freeze
|
||||
BILLING = 'billing'.freeze
|
||||
|
||||
ROLES = %w(super epp billing) # should not match to admin roles
|
||||
ROLES = %w[super epp billing].freeze # should not match to admin roles
|
||||
|
||||
def ability
|
||||
@ability ||= Ability.new(self)
|
||||
|
@ -72,8 +72,8 @@ class ApiUser < User
|
|||
|
||||
def linked_users
|
||||
self.class.where(identity_code: identity_code)
|
||||
.where("identity_code IS NOT NULL AND identity_code != ''")
|
||||
.where.not(id: id)
|
||||
.where("identity_code IS NOT NULL AND identity_code != ''")
|
||||
.where.not(id: id)
|
||||
end
|
||||
|
||||
def linked_with?(another_api_user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue