From 2e239d560c8b78685d8f4397b8d51c7301123e58 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 13 Aug 2024 23:21:15 -0400 Subject: [PATCH] Fix "all" support for JobPrivateAccess and SubscriptionPrivateAccess (Issue #990) --- scheduler/policy.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scheduler/policy.c b/scheduler/policy.c index f3ffd0720c..f76f58f0da 100644 --- a/scheduler/policy.c +++ b/scheduler/policy.c @@ -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... -- 2.47.2