mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
allow to show all information about contactg
This commit is contained in:
parent
88ed185558
commit
6d9de67d7c
1 changed files with 3 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue