Commit f3a66994 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only provide help on commands authorrized for the current CLI session



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5115 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1ab4a156
......@@ -129,6 +129,8 @@ CLS_func_help(struct cli *cli, const char * const *av, void *priv)
debug = 1;
} else {
VTAILQ_FOREACH(cfn, &cs->funcs, list) {
if (cfn->auth > cli->auth)
continue;
for (cp = cfn->clp; cp->request != NULL; cp++) {
if (!strcmp(cp->request, av[2])) {
cli_out(cli, "%s\n%s\n",
......@@ -148,6 +150,8 @@ CLS_func_help(struct cli *cli, const char * const *av, void *priv)
return;
}
VTAILQ_FOREACH(cfn, &cs->funcs, list) {
if (cfn->auth > cli->auth)
continue;
for (cp = cfn->clp; cp->request != NULL; cp++) {
d = 0;
h = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment