fixes #1634: Allow users to edit feedback they give out

This commit is contained in:
r888888888
2015-08-02 18:19:44 -07:00
parent 2ceb9a0c4f
commit 5e1dc81ab3
4 changed files with 36 additions and 1 deletions

View File

@@ -33,6 +33,13 @@ class UserFeedbacksController < ApplicationController
respond_with(@user_feedback)
end
def update
@user_feedback = UserFeedback.find(params[:id])
check_privilege(@user_feedback)
@user_feedback.update_attributes(params[:user_feedback])
respond_with(@user_feedback)
end
def destroy
@user_feedback = UserFeedback.find(params[:id])
check_privilege(@user_feedback)