From a64747b1fe3fb30bb05a8d9dcdfad625f7fade04 Mon Sep 17 00:00:00 2001 From: qw3rty Date: Mon, 19 Jul 2010 14:11:08 +0000 Subject: [PATCH] changed the subscribe command so that it allows admins as well as user to subscribe and unsubscribe the users from/to question. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@548 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/views/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/views/commands.py b/forum/views/commands.py index 74bbe5a..e41c2e0 100644 --- a/forum/views/commands.py +++ b/forum/views/commands.py @@ -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: -- 2.45.1