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])
|
@post_appeal = PostAppeal.find(params[:id])
|
||||||
respond_with(@post_appeal)
|
respond_with(@post_appeal)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
|
||||||
def check_privilege(post_appeal)
|
|
||||||
raise User::PrivilegeError unless (post_appeal.creator_id == CurrentUser.id || CurrentUser.is_moderator?)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -26,9 +26,4 @@ class PostFlagsController < ApplicationController
|
|||||||
@post_flag = PostFlag.find(params[:id])
|
@post_flag = PostFlag.find(params[:id])
|
||||||
respond_with(@post_flag)
|
respond_with(@post_flag)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
|
||||||
def check_privilege(post_flag)
|
|
||||||
raise User::PrivilegeError unless (post_flag.creator_id == CurrentUser.id || CurrentUser.is_moderator?)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user