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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user