]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/commands.py
changed the subscribe command so that it allows admins as well as user to subscribe...
[osqa.git] / 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: