mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
added test
This commit is contained in:
parent
bc31a8231b
commit
2ee77fc8e9
2 changed files with 39 additions and 2 deletions
|
@ -54,10 +54,10 @@ class Ability
|
|||
can(:delete, Epp::Domain) { |d, pw| d.registrar_id == @user.registrar_id || d.transfer_code == pw }
|
||||
|
||||
# Epp::Contact
|
||||
can(:info, Epp::Contact) do |c, pw|
|
||||
can(:info, Epp::Contact) do |c, pw|
|
||||
c.registrar_id == @user.registrar_id ||
|
||||
pw.blank? ? true : c.auth_info == pw ||
|
||||
c.transferred_passwords.include?(pw)
|
||||
c.transferred_passwords.include?(pw)
|
||||
end
|
||||
can(:view_full_info, Epp::Contact) { |c, pw| c.registrar_id == @user.registrar_id || c.auth_info == pw }
|
||||
can(:check, Epp::Contact)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue