public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Search Repo:
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
MehpistoController#dispatch_comments only requires #logged_in? and not 
#admin? to tell the Comment whether or not the user is authenticated.
francois (author)
Mon Mar 10 20:06:22 -0700 2008
commit  a845a68630cb4c6f3c6827fac5d34709afd047ec
tree    1c89276b49f64f44f3b056ecdae3bc265ff14f58
parent  a0ce1ae632eba963b678dd36b3b67b7a04d42f59
...
47
48
49
50
 
51
52
53
...
47
48
49
 
50
51
52
53
0
@@ -47,7 +47,7 @@
0
       end
0
 
0
       @comment = @article.comments.build(params[:comment].merge(:user_id => session[:user], :author_ip => request.remote_ip, :user_agent => request.user_agent, :referrer => request.referer))
0
- @comment.check_approval(site, request, :authenticated => admin?) if @comment.valid?
0
+ @comment.check_approval(site, request, :authenticated => logged_in?) if @comment.valid?
0
       @comment.save!
0
       redirect_to dispatch_path(:path => (site.permalink_for(@article)[1..-1].split('/') << 'comments' << @comment.id.to_s), :anchor => @comment.dom_id)
0
     rescue ActiveRecord::RecordInvalid

Comments

    No one has commented yet.