mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 02:05:57 +02:00
Added iptables counter update script
This commit is contained in:
parent
80e4fe0529
commit
bb6186c33b
6 changed files with 47 additions and 23 deletions
|
@ -11,13 +11,16 @@ class ApiUser < User
|
|||
}
|
||||
end
|
||||
|
||||
# TODO: should have max request limit per day
|
||||
# TODO: should have max request limit per day?
|
||||
belongs_to :registrar
|
||||
has_many :certificates
|
||||
|
||||
validates :username, :password, :registrar, :roles, presence: true
|
||||
validates :username, uniqueness: true
|
||||
|
||||
# TODO: probably cache, because it's requested on every EPP
|
||||
delegate :code, to: :registrar, prefix: true
|
||||
|
||||
attr_accessor :registrar_typeahead
|
||||
|
||||
ROLES = %w(super epp billing) # should not match to admin roles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue