]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Check Pool specific ACL in select_media_dbr()
authorEric Bollengier <eric@baculasystems.com>
Fri, 17 Mar 2023 14:59:27 +0000 (15:59 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 2 May 2023 07:07:18 +0000 (09:07 +0200)
bacula/src/dird/ua_select.c

index 822e25a6fe37f9602ee88396df8606c92e258c79..219f33557b6e951d18e3dd70ffb4ec581f435d7a 100644 (file)
@@ -745,7 +745,10 @@ int select_media_dbr(UAContext *ua, MEDIA_DBR *mr)
       pm_strcpy(err, db_strerror(ua->db));
       goto bail_out;
    }
-   ret = 1;
+
+   if (acl_access_ok(ua, Pool_ACL, mr->Pool)) {
+      ret = 1;
+   }
 
 bail_out:
    if (!ret && *err) {