diff --git a/app/policies/answer_policy.rb b/app/policies/answer_policy.rb index 805efac..d7bedcd 100644 --- a/app/policies/answer_policy.rb +++ b/app/policies/answer_policy.rb @@ -8,9 +8,9 @@ @answer = answer end - def create? - # is the plan editable by the user, and is the user_id that of the user - @answer.plan.editable_by(@user.id) && (@answer.user_id == @user.id) + def update? + # is the plan editable by the user + @answer.plan.editable_by?(@user.id) end end \ No newline at end of file