public
Description: The ultra-lightweight ultra-flexible blogging engine with a fetish for birds and misspellings.
Homepage: http://chyrp.net/
Clone URL: git://github.com/vito/chyrp.git
Click here to lend your support to: chyrp and make a donation at www.pledgie.com !
Fixed typo in Post::deletable(). [#111 state:resolved]
brucep (author)
Sun Jun 15 22:41:46 -0700 2008
commit  4f0f4e703f6fabb89a910c09b0383958ea96c44e
tree    256656527ea5780a4f76f40018c10e9b754f0ec9
parent  6246f4c652405758da44ae37838ccee27785f7e7
...
226
227
228
229
 
230
231
232
...
226
227
228
 
229
230
231
232
0
@@ -226,7 +226,7 @@
0
       if ($user->group()->can("delete_post"))
0
         return true;
0
 
0
-      return ($this->status == "draft" and $visitor->group()->can("delete_draft")) or
0
+      return ($this->status == "draft" and $user->group()->can("delete_draft")) or
0
              ($user->group()->can("delete_own_post") and $this->user_id == $user->id) or
0
              (($user->group()->can("delete_own_draft") and $this->status == "draft") and $this->user_id == $user->id);
0
     }

Comments