Skip to content

Commit

Permalink
Updated a few outdated references to notice.user
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Rosner <brosner@gmail.com>
  • Loading branch information
mcroydon authored and brosner committed Jan 5, 2010
1 parent 69eacff commit f4cc717
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notification/views.py
Expand Up @@ -90,7 +90,7 @@ def single(request, id, mark_seen=True):
already. Do nothing if ``False``. Default: ``True``.
"""
notice = get_object_or_404(Notice, id=id)
if request.user == notice.user:
if request.user == notice.recipient:
if mark_seen and notice.unseen:
notice.unseen = False
notice.save()
Expand All @@ -117,7 +117,7 @@ def archive(request, noticeid=None, next_page=None):
if noticeid:
try:
notice = Notice.objects.get(id=noticeid)
if request.user == notice.user or request.user.is_superuser:
if request.user == notice.recipient or request.user.is_superuser:
notice.archive()
else: # you can archive other users' notices
# only if you are superuser.
Expand All @@ -144,7 +144,7 @@ def delete(request, noticeid=None, next_page=None):
if noticeid:
try:
notice = Notice.objects.get(id=noticeid)
if request.user == notice.user or request.user.is_superuser:
if request.user == notice.recipient or request.user.is_superuser:
notice.delete()
else: # you can delete other users' notices
# only if you are superuser.
Expand Down

1 comment on commit f4cc717

@diox
Copy link

@diox diox commented on f4cc717 Mar 26, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.