在开源版本看板增加检查是否为Plus的钩子

This commit is contained in:
GoEdgeLab
2023-03-16 09:37:16 +08:00
parent 113a7fc14f
commit 785bb03c44
2 changed files with 9 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ func (this *IndexAction) RunGet(params struct{}) {
helpers.NotifyIPItemsCountChanges()
helpers.NotifyNodeLogsCountChange()
if teaconst.IsPlus {
if this.checkPlus() {
this.RedirectURL("/dashboard/boards")
return
}

View File

@@ -0,0 +1,8 @@
// Copyright 2023 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
//go:build !plus
package dashboard
func (this *IndexAction) checkPlus() bool {
return false
}