+from forum.settings import ONLINE_USERS\r
+\r
+def login_required(func, request, *args, **kwargs):\r
+ if not request.user.is_authenticated():\r
+ return HttpResponseRedirect(reverse('auth_signin'))\r
+ else:\r
+ return func(request, *args, **kwargs)\r