This commit is contained in:
r888888888
2016-09-08 16:02:51 -07:00
parent de34c7fca3
commit 1682196490
2 changed files with 1 additions and 4 deletions

View File

@@ -31,9 +31,6 @@ module Moderator
protected
def get_posts
end
def per_page
cookies["mq_per_page"] || params[:per_page] || 25
end

View File

@@ -27,7 +27,7 @@ class PostsController < ApplicationController
end
def show
if CurrentUser.is_janitor? && (cookies[:moderated].blank? || Time.at(cookies[:moderated].to_i) < 1.day.ago)
if CurrentUser.can_approve_posts? && (cookies[:moderated].blank? || Time.at(cookies[:moderated].to_i) < 1.day.ago)
flash[:notice] = "You haven't moderated any posts recently. Consider checking the queue."
#redirect_to(random_moderator_post_queue_path(:return_to => request.original_url))
#return