flags/appeals controllers: remove unused check_privilege method (#3206).
This commit is contained in:
@@ -26,9 +26,4 @@ class PostAppealsController < ApplicationController
|
||||
@post_appeal = PostAppeal.find(params[:id])
|
||||
respond_with(@post_appeal)
|
||||
end
|
||||
|
||||
private
|
||||
def check_privilege(post_appeal)
|
||||
raise User::PrivilegeError unless (post_appeal.creator_id == CurrentUser.id || CurrentUser.is_moderator?)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -26,9 +26,4 @@ class PostFlagsController < ApplicationController
|
||||
@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?)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user