summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-12 16:30:46 +0800
committerThibault Meyer <0xbaadf00d@users.noreply.github.com>2016-11-12 09:30:46 +0100
commit0baaa7728afe121ff19f7b22583558febe16e83b (patch)
tree017194433b72cdbda3ca2a3c2ccc37c92ce7cdc2 /models/user.go
parent30a37311f85b3058c8c5b94427208281568eba91 (diff)
downloadgitea-0baaa7728afe121ff19f7b22583558febe16e83b.tar.gz
gitea-0baaa7728afe121ff19f7b22583558febe16e83b.zip
bug fixed caused by #153 (#154)
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index 9437d40a52..8d73e180f0 100644
--- a/models/user.go
+++ b/models/user.go
@@ -895,7 +895,7 @@ func GetUserByKeyID(keyID int64) (*User, error) {
var user User
has, err := x.Join("INNER", "public_key", "`public_key`.owner_id = `user`.id").
Where("`public_key`.id=?", keyID).
- Get(user)
+ Get(&user)
if err != nil {
return nil, err
}