mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Own contacts can be deleted without password
This commit is contained in:
parent
670df629b4
commit
8cc03774ff
3 changed files with 43 additions and 7 deletions
|
@ -37,7 +37,7 @@ class Ability
|
|||
can(:check, Epp::Contact)
|
||||
can(:create, Epp::Contact)
|
||||
can(:update, Epp::Contact) { |c, pw| c.registrar_id == @user.registrar_id && c.auth_info == pw }
|
||||
can(:delete, Epp::Contact) { |c, pw| c.registrar_id == @user.registrar_id && c.auth_info == pw }
|
||||
can(:delete, Epp::Contact) { |c, pw| c.registrar_id == @user.registrar_id || c.auth_info == pw }
|
||||
can(:renew, Epp::Contact)
|
||||
can(:view_password, Epp::Contact) { |c, pw| c.registrar_id == @user.registrar_id || c.auth_info == pw }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue