Skip to content

Commit

Permalink
Discuss page was broken for guest users. Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
reddragon committed Sep 1, 2010
1 parent 44de5dd commit be2e936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/controllers/projects_controller.rb
Expand Up @@ -17,7 +17,8 @@

class ProjectsController < ApplicationController
include ApplicationHelper
before_filter :login_required, :except => ['index', 'show']
before_filter :login_required, :except => ['index', 'show', \
'load_project_page_content']
# GET /projects
# GET /projects.xml
def index
Expand Down
3 changes: 2 additions & 1 deletion app/views/comments/_show.html.haml
Expand Up @@ -69,7 +69,8 @@
%td
= display_message_content(comment.content)
%small
= link_to_remote 'Reply', {:update => "comment_space", :url => {:controller => "comments", :action => 'inpage_new', :project_id => @project.id, :reply_to_id => comment.id}, :with => "'comment_content=' + encodeURIComponent($('comment_content').value)"}
- if logged_in?
= link_to_remote 'Reply', {:update => "comment_space", :url => {:controller => "comments", :action => 'inpage_new', :project_id => @project.id, :reply_to_id => comment.id}, :with => "'comment_content=' + encodeURIComponent($('comment_content').value)"}
%div{:id => "comment_space#{comment.id}"}

- if logged_in?
Expand Down

0 comments on commit be2e936

Please sign in to comment.