[WIP] migration to psql
TODO: [ ] stats [ ] indexes
This commit is contained in:
parent
e1bd235785
commit
e72de38725
24 changed files with 648 additions and 936 deletions
|
@ -29,7 +29,7 @@ func GetSession(r *http.Request, db database.DB) (s *Session) {
|
|||
s.S, err = sesStore.Get(r, "session")
|
||||
if err == nil && !s.S.IsNew {
|
||||
s.User, _ = s.S.Values["user"].(string)
|
||||
s.Role = db.User(s.User).Role()
|
||||
s.Role, _ = db.GetRole(s.User)
|
||||
}
|
||||
|
||||
if s.S.IsNew {
|
||||
|
|
Reference in a new issue