mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +02:00
Add more auth methods
This commit is contained in:
parent
d1ec91323b
commit
6352c23cf1
2 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,8 @@ class Ability
|
|||
|
||||
# Epp::Domain
|
||||
can(:info, Epp::EppDomain) { |d, pw| d.registrar_id == @user.registrar_id || d.auth_info == pw }
|
||||
can(:check, Epp::EppDomain)
|
||||
can(:create, Epp::EppDomain)
|
||||
end
|
||||
|
||||
def user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue