This commit is contained in:
r888888888
2013-04-16 21:28:54 -07:00
parent 80cf4d2475
commit 677f102976
3 changed files with 12 additions and 2 deletions

View File

@@ -23,6 +23,11 @@ class PostFlagsController < ApplicationController
respond_with(@post_flag)
end
def show
@post_flag = PostFlag.find(params[:id])
respond_with(@post_flag)
end
private
def check_privilege(post_flag)
raise User::PrivilegeError unless (post_flag.creator_id == CurrentUser.id || CurrentUser.is_moderator?)