features, bug fixes

This commit is contained in:
jomo
2014-02-03 01:47:49 +01:00
parent 0d06bc19fc
commit 0604bbce63
18 changed files with 156 additions and 71 deletions

View File

@@ -14,7 +14,7 @@ class ForumsController < ApplicationController
def show
@forum = Forum.find(params[:id])
if @forum.role_read.nil? || current_user && @forum.role_read <= current_user.role
@threads = @forum.forumthreads.reverse
@threads = @forum.forumthreads.order("sticky desc, updated_at desc")
else
redirect_to forums_path
end