fix v12
This commit is contained in:
@@ -33,6 +33,11 @@ func Profile(ctx context.Context) {
|
||||
ctx.Data["HasPagePassword"] = ctx.User.PagePassword != ""
|
||||
ctx.Data["HasAskPassword"] = ctx.User.AskPassword != ""
|
||||
ctx.Data["ActiveProfileTab"] = ProfileTab(ctx.Query("tab"))
|
||||
// 处置期内审核严格度被强制为最高档且不可修改(见 moderation.EffectiveStrictness),
|
||||
// 设置页需要把下拉和保存按钮禁用,否则箱主会以为自己的修改生效了。
|
||||
if level, _, err := db.Restrictions.ActiveLevel(ctx.Request().Context(), ctx.User.ID); err == nil && level != "" {
|
||||
ctx.Data["StrictnessLocked"] = true
|
||||
}
|
||||
ctx.Data["TagLimits"] = tagLimits()
|
||||
ctx.Data["ChatLimits"] = chatLimits()
|
||||
InjectFeatureViews(ctx)
|
||||
|
||||
Reference in New Issue
Block a user