fixes #1287
This commit is contained in:
@@ -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?)
|
||||
|
||||
Reference in New Issue
Block a user