From 6d9de67d7c98504bb9ef6c4636c4c748afb41616 Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Tue, 6 Dec 2022 16:09:08 +0200 Subject: [PATCH] allow to show all information about contactg --- app/models/ability.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index 7ebfffc8b..74906c72d 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -59,7 +59,9 @@ class Ability pw.blank? ? true : c.auth_info == 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(: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(:create, Epp::Contact) can(:update, Epp::Contact) { |c, pw| c.registrar_id == @user.registrar_id || c.auth_info == pw }