Fixing bug
This commit is contained in:
parent
03cc39ea12
commit
a6e12aaef6
3 changed files with 43 additions and 6 deletions
|
@ -21,6 +21,10 @@ import (
|
|||
|
||||
// SignedInId returns the id of signed in user.
|
||||
func SignedInId(session session.SessionStore) int64 {
|
||||
if !models.HasEngine {
|
||||
return 0
|
||||
}
|
||||
|
||||
userId := session.Get("userId")
|
||||
if userId == nil {
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue