mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-07 17:53:42 +08:00
No need to login with Stable-Diffusion page and Invite page
This commit is contained in:
@@ -33,6 +33,8 @@ func (h *PowerLogHandler) List(c *gin.Context) {
|
||||
}
|
||||
|
||||
session := h.DB.Session(&gorm.Session{})
|
||||
userId := h.GetLoginUserId(c)
|
||||
session = session.Where("user_id", userId)
|
||||
if data.Model != "" {
|
||||
session = session.Where("model", data.Model)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user