remove ref to is_janitor
This commit is contained in:
@@ -604,12 +604,12 @@ class Tag < ActiveRecord::Base
|
|||||||
q[:pixiv_id] = parse_helper($2)
|
q[:pixiv_id] = parse_helper($2)
|
||||||
|
|
||||||
when "upvote"
|
when "upvote"
|
||||||
if CurrentUser.user.is_janitor?
|
if CurrentUser.user.is_moderator?
|
||||||
q[:upvote] = User.name_to_id($2)
|
q[:upvote] = User.name_to_id($2)
|
||||||
end
|
end
|
||||||
|
|
||||||
when "downvote"
|
when "downvote"
|
||||||
if CurrentUser.user.is_janitor?
|
if CurrentUser.user.is_moderator?
|
||||||
q[:downvote] = User.name_to_id($2)
|
q[:downvote] = User.name_to_id($2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user