summaryrefslogtreecommitdiffstats
path: root/forum/views/users.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/views/users.py')
-rw-r--r--forum/views/users.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/forum/views/users.py b/forum/views/users.py
index 8a7ecaa6..f20a332e 100644
--- a/forum/views/users.py
+++ b/forum/views/users.py
@@ -855,8 +855,11 @@ def user_favorites(request, user_id, user_view):
"view_user" : user
}, context_instance=RequestContext(request))
+@login_required
def user_email_subscriptions(request, user_id, user_view):
user = get_object_or_404(User, id=user_id)
+ if request.user != user:
+ raise Http404
if request.method == 'POST':
email_feeds_form = EditUserEmailFeedsForm(request.POST)
tag_filter_form = TagFilterSelectionForm(request.POST, instance=user)