fix dashboard custom theme, expose HideForGuest for api (#434)

* fix: dashboard custom theme

* api: expose HideForGuest
This commit is contained in:
UUBulb
2024-10-10 13:38:09 +08:00
committed by GitHub
parent 55f5c89c1c
commit 0b7f43b149
3 changed files with 23 additions and 10 deletions

View File

@@ -940,7 +940,7 @@ func (ma *memberAPI) updateSetting(c *gin.Context) {
return
}
if _, yes := model.Themes[sf.DashboardTheme]; !yes {
if _, yes := model.DashboardThemes[sf.DashboardTheme]; !yes {
c.JSON(http.StatusOK, model.Response{
Code: http.StatusBadRequest,
Message: fmt.Sprintf("后台主题不存在:%s", sf.DashboardTheme),