Permalink
Browse files

wow, scary. How did that go unnoticed for like 6 months.

  • Loading branch information...
1 parent 4079b97 commit 8ca44169eaf5b72bc78c54c0ee3c47d5bff3670c @sudara sudara committed Mar 9, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/controllers/forums_controller.rb
@@ -1,5 +1,5 @@
class ForumsController < ApplicationController
- before_filter :admin_required, :except => [:index, :show]
+ before_filter :login_required, :except => [:index, :show]
before_filter :set_forum_tab
# GET /forums
@@ -103,6 +103,10 @@ def destroy
end
protected
+ def authorized?
+ admin?
+ end
+
def set_forum_tab
@tab = "forums"
end

0 comments on commit 8ca4416

Please sign in to comment.