]> git.openstreetmap.org Git - osqa.git/commitdiff
changed the subscribe command so that it allows admins as well as user to subscribe...
authorqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 19 Jul 2010 14:11:08 +0000 (14:11 +0000)
committerqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 19 Jul 2010 14:11:08 +0000 (14:11 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@548 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/commands.py

index 74bbe5ad043f841cabb5578e0bf37830cb46da42..e41c2e06ec431776490fc0bf1f650c3fefab00ec 100644 (file)
@@ -439,7 +439,7 @@ def convert_to_comment(request, id):
 def subscribe(request, id, user=0):    
     if user:
         user = User.objects.filter(id=user)[0]
-        if user.is_a_super_user_or_staff():
+        if not (user.is_a_super_user_or_staff() or user.is_authenticated()):
             raise CommandException(_("You do not have the correct credentials to preform this action."))
 
     else: