rename references of privileged to gold
This commit is contained in:
@@ -197,7 +197,7 @@ class AnonymousUser
|
||||
""
|
||||
end
|
||||
|
||||
%w(member banned privileged builder platinum contributor janitor moderator admin).each do |name|
|
||||
%w(member banned gold builder platinum contributor janitor moderator admin).each do |name|
|
||||
define_method("is_#{name}?") do
|
||||
false
|
||||
end
|
||||
|
||||
@@ -30,7 +30,7 @@ module PostSets
|
||||
end
|
||||
|
||||
def has_deleted?
|
||||
CurrentUser.is_privileged? && tag_string !~ /status/ && ::Post.tag_match("#{tag_string} status:deleted").exists?
|
||||
CurrentUser.is_gold? && tag_string !~ /status/ && ::Post.tag_match("#{tag_string} status:deleted").exists?
|
||||
end
|
||||
|
||||
def has_explicit?
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module PostSets
|
||||
class SearchError < Exception
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user