Committer: ailyin
LJSUP-7846 (attempting to delete an anonymous comment results in an error message)U trunk/htdocs/delcomment.bml
Modified: trunk/htdocs/delcomment.bml =================================================================== --- trunk/htdocs/delcomment.bml 2011-02-01 11:42:27 UTC (rev 18181) +++ trunk/htdocs/delcomment.bml 2011-02-02 07:02:43 UTC (rev 18182) @@ -156,8 +156,9 @@ 'mark_spam' => ( $remote != $poster ), # they can delete all comments posted by the same author - # if they are the entry author - 'delete_author' => ( $remote == $entry->poster ), + # if they are the entry author, and the comment being deleted + # has not been posted anonymously + 'delete_author' => $poster && ( $remote == $entry->poster ), ); # so now that we have prepared everything, let's actually