flags/appeals controllers: remove unused check_privilege method (#3206).

This commit is contained in:
evazion
2017-07-07 15:46:48 -05:00
parent 0c79d2f09e
commit e3922fb525
2 changed files with 0 additions and 10 deletions

View File

@@ -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

View File

@@ -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