aboutsummaryrefslogtreecommitdiffstats
path: root/services/auth/group.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/auth/group.go')
-rw-r--r--services/auth/group.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/auth/group.go b/services/auth/group.go
index fb885b818a..c396ae046b 100644
--- a/services/auth/group.go
+++ b/services/auth/group.go
@@ -8,6 +8,7 @@ import (
"net/http"
"code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/models/db"
)
// Ensure the struct implements the interface.
@@ -60,7 +61,7 @@ func (b *Group) Free() error {
// Verify extracts and validates
func (b *Group) Verify(req *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) *models.User {
- if !models.HasEngine {
+ if !db.HasEngine {
return nil
}