From: Eric Bollengier Date: Tue, 4 Apr 2023 14:17:15 +0000 (+0200) Subject: Fix #10032 Allow restore menu 1 to users without sqlquery command ACL X-Git-Tag: Release-13.0.3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1868630d2a6b43ed07d407c72d7fde04c7ccee0;p=thirdparty%2Fbacula.git Fix #10032 Allow restore menu 1 to users without sqlquery command ACL --- diff --git a/bacula/src/dird/ua_restore.c b/bacula/src/dird/ua_restore.c index 4156d33b8..2c71c176a 100644 --- a/bacula/src/dird/ua_restore.c +++ b/bacula/src/dird/ua_restore.c @@ -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;