`target_account.user` -> `target_account`

staging
multiple creatures 2019-08-15 09:26:55 -05:00
parent e2e0eddda7
commit cc3cf7b606
1 changed files with 3 additions and 3 deletions

View File

@ -108,13 +108,13 @@ class Admin::AccountAction
def handle_force_sensitive! def handle_force_sensitive!
authorize(target_account, :force_sensitive?) authorize(target_account, :force_sensitive?)
log_action(:force_sensitive, target_account.user) log_action(:force_sensitive, target_account)
target_account.force_sensitive! target_account.force_sensitive!
end end
def handle_force_unlisted! def handle_force_unlisted!
authorize(target_account, :force_unlisted?) authorize(target_account, :force_unlisted?)
log_action(:force_unlisted, target_account.user) log_action(:force_unlisted, target_account)
target_account.force_unlisted! target_account.force_unlisted!
end end
@ -133,7 +133,7 @@ class Admin::AccountAction
def handle_mark_unknown! def handle_mark_unknown!
authorize(target_account, :mark_unknown?) authorize(target_account, :mark_unknown?)
log_action(:mark_unknown, target_account.user) log_action(:mark_unknown, target_account)
target_account.mark_unknown! target_account.mark_unknown!
end end