]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Disable Bootstrap manual selection in restore for Restricted Console
authorEric Bollengier <eric@baculasystems.com>
Tue, 4 Apr 2023 09:57:10 +0000 (11:57 +0200)
committerEric Bollengier <eric@baculasystems.com>
Tue, 2 May 2023 07:07:18 +0000 (09:07 +0200)
bacula/src/dird/ua_run.c

index d29c64a0c114516d2adc7f55eee3e79285baa435..8f6fa9bc490e69b44d8295ac0cc6f330e86f7184 100644 (file)
@@ -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 ||