This commit is contained in:
r888888888
2015-06-25 13:51:05 -07:00
parent 3cc7dbbedc
commit 1d9596d7f2
64 changed files with 244 additions and 140 deletions

View File

@@ -1,6 +1,6 @@
module Moderator
class DashboardsController < ApplicationController
before_filter :janitor_only
before_filter :moderator_only
helper :post_flags, :post_appeals
def show

View File

@@ -1,6 +1,6 @@
module Moderator
class IpAddrsController < ApplicationController
before_filter :janitor_only
before_filter :moderator_only
def index
@search = IpAddrSearch.new(params[:search])

View File

@@ -1,7 +1,7 @@
module Moderator
module Post
class ApprovalsController < ApplicationController
before_filter :janitor_only
before_filter :post_approvers_only
def create
@post = ::Post.find(params[:post_id])

View File

@@ -1,7 +1,7 @@
module Moderator
module Post
class DisapprovalsController < ApplicationController
before_filter :janitor_only
before_filter :post_approvers_only
def create
@post = ::Post.find(params[:post_id])

View File

@@ -1,7 +1,7 @@
module Moderator
module Post
class PostsController < ApplicationController
before_filter :janitor_only, :only => [:delete, :undelete, :ban, :unban, :confirm_delete, :confirm_ban]
before_filter :moderator_only, :only => [:delete, :undelete, :ban, :unban, :confirm_delete, :confirm_ban]
before_filter :admin_only, :only => [:expunge]
rescue_from ::PostFlag::Error, :with => :rescue_exception

View File

@@ -2,7 +2,7 @@ module Moderator
module Post
class QueuesController < ApplicationController
respond_to :html, :json
before_filter :janitor_only
before_filter :post_approvers_only
def show
::Post.without_timeout do