allow to show all information about contactg

This commit is contained in:
olegphenomenon 2022-12-06 16:09:08 +02:00
parent 88ed185558
commit 6d9de67d7c

View file

@ -59,7 +59,9 @@ class Ability
pw.blank? ? true : c.auth_info == pw || pw.blank? ? true : c.auth_info == pw ||
c.transferred_passwords.include?(pw) c.transferred_passwords.include?(pw)
end end
can(:view_full_info, Epp::Contact) { |c, pw| c.registrar_id == @user.registrar_id || c.auth_info == pw } can(:view_full_info, Epp::Contact) do |c, pw|
c.registrar_id == @user.registrar_id || c.auth_info == pw || c.transferred_passwords.include?(pw)
end
can(:check, Epp::Contact) can(:check, Epp::Contact)
can(:create, Epp::Contact) can(:create, Epp::Contact)
can(:update, Epp::Contact) { |c, pw| c.registrar_id == @user.registrar_id || c.auth_info == pw } can(:update, Epp::Contact) { |c, pw| c.registrar_id == @user.registrar_id || c.auth_info == pw }