changeset 6064:b40799be6932

log page creation access denied with abuse logger
author 'Karl O. Pinc' <kop@meme.com>
date Thu, 04 Sep 2014 11:47:12 -0500
parents c2e4df0f760f
children bbbfb024a967
files MoinMoin/action/newpage.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/newpage.py	Thu Sep 04 10:50:04 2014 -0500
+++ b/MoinMoin/action/newpage.py	Thu Sep 04 11:47:12 2014 -0500
@@ -12,6 +12,7 @@
 
 import time
 from MoinMoin.Page import Page
+from MoinMoin.util.abuse import log_attempt
 
 class NewPage:
     """ Open editor for a new page, using template """
@@ -65,6 +66,7 @@
         page = Page(self.request, self.pagename)
         if not (page.isWritable() and self.request.user.may.read(self.pagename)):
             # Same error as the edit page for localization reasons
+            log_attempt('newpage', False, self.request)
             return _('You are not allowed to edit this page.')
         return ''