Skip to content

Commit f70559c

Browse files
committed
Gate.ProtectFuncWithPermission should return http.HandlerFunc instead of http.Handler
1 parent d37ad28 commit f70559c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ func (gate *Gate) ProtectFuncWithPermissions(handlerFunc http.HandlerFunc, permi
116116
// slice of permissions
117117
//
118118
// See ProtectFuncWithPermissions for further documentation
119-
func (gate *Gate) ProtectFuncWithPermission(handlerFunc http.HandlerFunc, permission string) http.Handler {
119+
func (gate *Gate) ProtectFuncWithPermission(handlerFunc http.HandlerFunc, permission string) http.HandlerFunc {
120120
return gate.ProtectFuncWithPermissions(handlerFunc, []string{permission})
121121
}

0 commit comments

Comments
 (0)