remove links that are not usable by anon users, fixes #977

This commit is contained in:
albert
2013-03-22 10:18:05 -07:00
parent b21dcc47a7
commit 8bfd7b408f
9 changed files with 31 additions and 19 deletions

View File

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