<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -66,7 +66,7 @@
 
         static function route_add_comment() {
             $post = new Post($_POST['post_id'], array(&quot;drafts&quot; =&gt; true));
-            if (!Comment::user_can($post-&gt;id))
+            if (!Comment::user_can($post))
                 show_403(__(&quot;Access Denied&quot;), __(&quot;You cannot comment on this post.&quot;, &quot;comments&quot;));
 
             if (empty($_POST['author'])) error(__(&quot;Error&quot;), __(&quot;Author can't be blank.&quot;, &quot;comments&quot;));</diff>
      <filename>modules/comments/comments.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c41fc068cbe4456f5194d5d925ad88e269646e5f</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/6caea733a36320fb66f3ad35eae64e967243ddc5</url>
  <id>6caea733a36320fb66f3ad35eae64e967243ddc5</id>
  <committed-date>2009-10-05T10:48:26-07:00</committed-date>
  <authored-date>2009-10-05T10:48:26-07:00</authored-date>
  <message>Fixed route_add_comment permissions check.</message>
  <tree>c1d34eccbb1fd6013b19d04f0b6c94c1e6c4e72e</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
