remove links that are not usable by anon users, fixes #977
This commit is contained in:
@@ -85,7 +85,7 @@ protected
|
||||
end
|
||||
end
|
||||
|
||||
%w(member banned privileged platinum contributor janitor moderator admin).each do |level|
|
||||
%w(member banned builder privileged platinum contributor janitor moderator admin).each do |level|
|
||||
define_method("#{level}_only") do
|
||||
if CurrentUser.user.__send__("is_#{level}?")
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user