mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Fixing bug
This commit is contained in:
1 parent
03cc39ea12
commit
a6e12aaef6
3 files changed
+43
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user