commands/http: Error if trying to run private command

This commit is contained in:
Matt Bell 2014-10-30 22:00:40 -07:00 committed by Juan Batiz-Benet
parent abcebb0bc2
commit cfa56dde82

View File

@ -31,6 +31,10 @@ func Parse(r *http.Request, root *cmds.Command) (cmds.Request, error) {
cmd = sub
}
if cmd.Private {
return nil, ErrNotFound
}
opts, args2 := parseOptions(r)
args = append(args, args2...)