Skip to content

Commit

Permalink
添加权限控制继承
Browse files Browse the repository at this point in the history
  • Loading branch information
yumaojun03 committed Apr 13, 2020
1 parent b9abe9b commit 2369b59
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions http/router/httprouter/subrouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import (

func newSubRouter(basePath string, root *httpRouter) *subRouter {
return &subRouter{
basePath: basePath,
root: root,
basePath: basePath,
root: root,
authEnable: root.authEnable,
permissionEnable: root.permissionEnable,
}
}

Expand Down Expand Up @@ -79,6 +81,8 @@ func (r *subRouter) ResourceRouter(resourceName string, labels ...*router.Label)
basePath: r.basePath,
root: r.root,
labels: append(r.labels, labels...),
authEnable: r.authEnable,
permissionEnable: r.permissionEnable,
}
}

Expand Down

0 comments on commit 2369b59

Please sign in to comment.