router_gen: remove unused MemberView()
This commit is contained in:
parent
0d23e4f829
commit
dac1d9a1c1
@ -93,14 +93,6 @@ func MView(fname string, path string, args ...string) *RouteImpl {
|
|||||||
return route
|
return route
|
||||||
}
|
}
|
||||||
|
|
||||||
func MemberView(fname string, path string, args ...string) *RouteImpl {
|
|
||||||
route := route(fname, path, false, false, args...)
|
|
||||||
if !route.hasBefore("SuperModOnly", "AdminOnly") {
|
|
||||||
route.Before("MemberOnly")
|
|
||||||
}
|
|
||||||
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