stuff
This commit is contained in:
@@ -42,7 +42,7 @@ protected
|
||||
else
|
||||
CurrentUser.user = AnonymousUser.new
|
||||
end
|
||||
|
||||
|
||||
Time.zone = CurrentUser.user.time_zone
|
||||
end
|
||||
|
||||
@@ -57,6 +57,7 @@ protected
|
||||
true
|
||||
else
|
||||
access_denied()
|
||||
false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class PostModerationController < ApplicationController
|
||||
before_filter :janitor_only
|
||||
rescue_from Post::ApprovalError, :with => :approval_error
|
||||
rescue_from Post::DisapprovalError, :with => :disapproval_error
|
||||
# before_filter :janitor_only
|
||||
# rescue_from Post::ApprovalError, :with => :approval_error
|
||||
# rescue_from Post::DisapprovalError, :with => :disapproval_error
|
||||
|
||||
def moderate
|
||||
@search = Post.order("id asc").pending_or_flagged.available_for_moderation.search(:tag_match => params[:query])
|
||||
|
||||
@@ -10,8 +10,8 @@ class PostsController < ApplicationController
|
||||
|
||||
def show
|
||||
@post = Post.find(params[:id])
|
||||
@post_flag = PostFlag.new(:post_id => @post)
|
||||
@post_appeal = PostAppeal.new(:post_id => @post)
|
||||
@post_flag = PostFlag.new(:post_id => @post.id)
|
||||
@post_appeal = PostAppeal.new(:post_id => @post.id)
|
||||
respond_with(@post)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user