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

Method Prepare

controllers/ManagerController.go:35–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (this *ManagerController) Prepare() {
36 this.BaseController.Prepare()
37 if !this.Member.IsAdministrator() {
38 this.Abort("404")
39 }
40}
41
42func (this *ManagerController) Index() {
43 this.TplName = "manager/index.html"

Callers

nothing calls this directly

Calls 1

IsAdministratorMethod · 0.80

Tested by

no test coverage detected