MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Prepare

Method Prepare

controllers/LabelController.go:17–25  ·  view source on GitHub ↗

Prepare

()

Source from the content-addressed store, hash-verified

15
16// Prepare
17func (this *LabelController) Prepare() {
18 this.BaseController.Prepare()
19
20 //如果没有开启你们访问则跳转到登录
21 if !this.EnableAnonymous && this.Member == nil {
22 this.Redirect(beego.URLFor("AccountController.Login"), 302)
23 return
24 }
25}
26
27// 查看包含标签的文档列表.
28func (this *LabelController) Index() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected