Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r18182: LJSUP-7846 (attempting to delete an anon...

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

Tags: andy, bml, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments