From: Eric Bollengier Date: Tue, 4 Apr 2023 09:57:10 +0000 (+0200) Subject: Disable Bootstrap manual selection in restore for Restricted Console X-Git-Tag: Release-13.0.3~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=238f8ae35dd38c8dca4a02ebcc4a7fa1bd3ad3b3;p=thirdparty%2Fbacula.git Disable Bootstrap manual selection in restore for Restricted Console --- diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index d29c64a0c..8f6fa9bc4 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -1301,6 +1301,10 @@ int modify_job_parameters(UAContext *ua, JCR *jcr, run_ctx &rc) } goto try_again; case 7: + if (ua->cons) { + ua->error_msg(_("Selection of bootstrap file is not allowed for restricted Console\n")); + break; + } /* Pool or Bootstrap depending on JobType */ if (jcr->getJobType() == JT_BACKUP || jcr->getJobType() == JT_COPY ||