From 6f8143cfb9188e2e6c1869a74dd6df9a66460fd4 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Tue, 12 Jun 2012 16:26:54 +0100 Subject: [PATCH 1/1] Allow logged in users to comment on blog entries by passing moderation --- sommitrealweird/blog/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sommitrealweird/blog/models.py b/sommitrealweird/blog/models.py index c98407d..f76de30 100644 --- a/sommitrealweird/blog/models.py +++ b/sommitrealweird/blog/models.py @@ -33,7 +33,10 @@ class BlogEntryCommentModerator(CommentModerator): email_notification = True def moderate(self, comment, content_object, request): - return True + if request.user.is_authenticated(): + return False + else: + return True moderator.register(BlogEntry, BlogEntryCommentModerator) -- 2.39.5