mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Allow to update own contact without password
This commit is contained in:
parent
8cc03774ff
commit
430f3e3e58
4 changed files with 44 additions and 12 deletions
|
@ -36,7 +36,7 @@ class Ability
|
|||
can(:view_full_info, Epp::Contact) { |c, pw| c.registrar_id == @user.registrar_id || c.auth_info == pw }
|
||||
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(: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(:renew, Epp::Contact)
|
||||
can(:view_password, 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