router_gen: reword unused ModView()
This commit is contained in:
parent
d723895f5d
commit
0d23e4f829
@ -101,14 +101,6 @@ func MemberView(fname string, path string, args ...string) *RouteImpl {
|
|||||||
return route
|
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 {
|
func Action(fname string, path string, args ...string) *RouteImpl {
|
||||||
route := route(fname, path, true, false, args...)
|
route := route(fname, path, true, false, args...)
|
||||||
route.Before("NoSessionMismatch")
|
route.Before("NoSessionMismatch")
|
||||||
|
Loading…
Reference in New Issue
Block a user