|
@@ -10,12 +10,12 @@ import (
|
|
|
//需要系统管理员权限
|
|
|
|
|
|
|
|
|
-var CustomerReg = regexp.MustCompile("^/client|customerRule/.+$")
|
|
|
+var CustomerReg = regexp.MustCompile("^/client|customerRule|personnel/.+$")
|
|
|
|
|
|
func init() {
|
|
|
log.Println("过滤器")
|
|
|
matchUrl := make([]*regexp.Regexp, 0)
|
|
|
- filter, _ := regexp.Compile("/(front|service|client|customerRule)")
|
|
|
+ filter, _ := regexp.Compile("/(front|service|client|customerRule|admin|personnel)")
|
|
|
matchUrl = append(matchUrl, filter)
|
|
|
xweb.AddFilter(&sessfilter{App: xweb.RootApp(), SessionName: "user",
|
|
|
MatchUrl: matchUrl})
|