feat: add demo mode (#1097)

* feat: add demo mode

* feat: add demo mode

* Update app.conf

* Update authz.go

* Update authz.go

Co-authored-by: Yang Luo <hsluoyz@qq.com>
This commit is contained in:
cofecatt
2022-09-04 21:20:19 +08:00
committed by GitHub
parent 35676455bc
commit 7599e2715a
3 changed files with 31 additions and 1 deletions

View File

@ -80,3 +80,7 @@ func GetBeegoConfDataSourceName() string {
return dataSourceName
}
func IsDemoMode() bool {
return strings.ToLower(GetConfigString("isDemoMode")) == "true"
}