]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix "all" support for JobPrivateAccess and SubscriptionPrivateAccess (Issue #990)
authorMichael R Sweet <msweet@msweet.org>
Wed, 14 Aug 2024 03:23:56 +0000 (23:23 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 14 Aug 2024 03:23:56 +0000 (23:23 -0400)
CHANGES.md
scheduler/policy.c

index f7063cb6ca4527141af4a52d69dc8365208f62fb..a3c07a9fa307231bfb7a622383ab06db354f7935 100644 (file)
@@ -7,6 +7,8 @@ Changes in CUPS v2.4.11 (YYYY-MM-DD)
 
 - Updated the maximum file descriptor limit for `cupsd` to 64k-1 (Issue #989)
 - Fixed incorrect error message for HTTP/IPP errors (Issue #893)
+- Fixed JobPrivateAccess and SubscriptionPrivateAccess support for "all"
+  (Issue #990)
 - Fixed issues with cupsGetDestMediaByXxx (Issue #993)
 - Fixed adding and modifying of printers via the web interface (Issue #998)
 - Fixed checkbox support (Issue #1008)
index 884e499e00d2c45ab9fce754d6717fdf45e3ed3f..f6b25e0db66461b4aa3e0824aef1ceb50a4847c6 100644 (file)
@@ -2,10 +2,11 @@
  * Policy routines for the CUPS scheduler.
  *
  * Copyright © 2020-2024 by OpenPrinting.
- * Copyright 2007-2011, 2014 by Apple Inc.
- * Copyright 1997-2006 by Easy Software Products, all rights reserved.
+ * Copyright © 2007-2011, 2014 by Apple Inc.
+ * Copyright © 1997-2006 by Easy Software Products, all rights reserved.
  *
- * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
+ * Licensed under Apache License v2.0.  See the file "LICENSE" for more
+ * information.
  */
 
 /*
@@ -318,6 +319,10 @@ cupsdGetPrivateAttrs(
 
     return (NULL);
   }
+  else if (name && !_cups_strcasecmp(name, "all"))
+  {
+    return (attrs_ptr);
+  }
 
  /*
   * Otherwise check the user against the access list...