1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

modified cookie set

This commit is contained in:
llj
2012-08-20 15:24:43 +08:00
parent a14c1d0c48
commit c5be7a4062
3 changed files with 4 additions and 18 deletions

View File

@@ -9,18 +9,6 @@ from auth.decorators import login_required
from seahub.notifications.models import Notification, NotificationForm
from seahub.notifications.utils import refresh_cache
@login_required
def notification_close(request, note_id):
note_id += ','
topinfo_close = request.COOKIES.get('topinfo', '')
topinfo_close += note_id
next = request.GET.get('next', '/')
res = HttpResponseRedirect(next)
res.set_cookie("topinfo", topinfo_close, max_age=14*24*60*60)
return res
@login_required
def notification_list(request):
if not request.user.is_staff: