diff options
Diffstat (limited to 'models/ssh_key_principals.go')
-rw-r--r-- | models/ssh_key_principals.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/ssh_key_principals.go b/models/ssh_key_principals.go index 44b2ee0bb4..50456b72db 100644 --- a/models/ssh_key_principals.go +++ b/models/ssh_key_principals.go @@ -10,6 +10,7 @@ import ( "strings" "code.gitea.io/gitea/models/db" + user_model "code.gitea.io/gitea/models/user" "code.gitea.io/gitea/modules/setting" ) @@ -88,7 +89,7 @@ func CheckPrincipalKeyString(user *User, content string) (_ string, err error) { case "anything": return content, nil case "email": - emails, err := GetEmailAddresses(user.ID) + emails, err := user_model.GetEmailAddresses(user.ID) if err != nil { return "", err } |