Add more auth methods

This commit is contained in:
Martin Lensment 2015-03-10 11:17:57 +02:00
parent d1ec91323b
commit 6352c23cf1
2 changed files with 5 additions and 0 deletions

View file

@ -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