diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-09-05 21:50:44 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-09-05 21:50:44 +0200 |
commit | 6f4d4569a5227e1962f5f7a81e1a63b6046cfb6c (patch) | |
tree | 0e0a49b15f67de1816c756de04eb8f0f4a9a2288 /jobs.go | |
parent | 0829fda06733674abdc340ec17c0fbfb4fd778ae (diff) | |
download | mailremind-6f4d4569a5227e1962f5f7a81e1a63b6046cfb6c.tar.gz mailremind-6f4d4569a5227e1962f5f7a81e1a63b6046cfb6c.tar.bz2 mailremind-6f4d4569a5227e1962f5f7a81e1a63b6046cfb6c.zip |
Menu options change drectly on Login/Logout
Diffstat (limited to 'jobs.go')
-rw-r--r-- | jobs.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,9 +30,9 @@ type jobsTpldata struct { Fatal bool } -func jobs(user model.User, sess *sessions.Session, req *http.Request) interface{} { +func jobs(user model.User, sess *sessions.Session, req *http.Request) (interface{}, model.User) { if user == nil { - return &jobsTpldata{Error: "You need to be logged in to do that.", Fatal: true} + return &jobsTpldata{Error: "You need to be logged in to do that.", Fatal: true}, user } outdata := new(jobsTpldata) @@ -77,5 +77,5 @@ listjobs: outdata.Jobs[i] = jobToTpldata(job, user) } - return outdata + return outdata, user } |