]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #10032 Allow restore menu 1 to users without sqlquery command ACL
authorEric Bollengier <eric@baculasystems.com>
Tue, 4 Apr 2023 14:17:15 +0000 (16:17 +0200)
committerEric Bollengier <eric@baculasystems.com>
Tue, 2 May 2023 07:07:18 +0000 (09:07 +0200)
bacula/src/dird/ua_restore.c

index 4156d33b851096409a6e5825ec9a3d6ba101443d..2c71c176ab0b679af4546777b8ecf97b4f71bf9d 100644 (file)
@@ -841,10 +841,6 @@ static int user_select_jobids_or_files(UAContext *ua, RESTORE_CTX *rx)
       case -1:                        /* error or cancel */
          return 0;
       case 0:                         /* list last 20 Jobs run */
-         if (!acl_access_ok(ua, Command_ACL, NT_("sqlquery"), 8)) {
-            ua->error_msg(_("SQL query not authorized.\n"));
-            return 0;
-         }
          {
             memset(&jr, 0, sizeof(jr));
             jr.limit=20;