Remove the notifications once they are shown

This commit is contained in:
Las Zenow 2013-09-03 14:16:19 +02:00
parent 7410ae7942
commit 147ed57fc8

View file

@ -25,12 +25,12 @@ type Status struct {
func GetStatus(w http.ResponseWriter, r *http.Request) Status {
var s Status
sess := GetSession(r)
sess.Save(w, r)
s.BaseURL = "http://" + r.Host
s.FullURL = s.BaseURL + r.RequestURI
s.User = sess.User
s.IsAdmin = sess.IsAdmin()
s.Notif = sess.GetNotif()
sess.Save(w, r)
return s
}