router_gen: reword unused ModView()

This commit is contained in:
Lars Lehtonen 2020-02-20 08:46:50 -08:00
parent d723895f5d
commit 0d23e4f829
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -101,14 +101,6 @@ func MemberView(fname string, path string, args ...string) *RouteImpl {
return route
}
func ModView(fname string, path string, args ...string) *RouteImpl {
route := route(fname, path, false, false, args...)
if !route.hasBefore("AdminOnly") {
route.Before("SuperModOnly")
}
return route
}
func Action(fname string, path string, args ...string) *RouteImpl {
route := route(fname, path, true, false, args...)
route.Before("NoSessionMismatch")