[Kde-print-devel] [Bug 115466] Send requesting-user-name in CUPS_GET_PRINTERS and CUPS_GET_CLASSES
Cristian Tibirna
tibirna at kde.org
Mon Nov 28 04:56:54 CET 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=115466
tibirna kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From tibirna kde org 2005-11-28 04:56 -------
SVN commit 483752 by tibirna:
Filter printers per user allowance (for CUPS>=1.2). Thanks to Erik
Forsberg.
BUG:115466
M +3 -0 kmcupsmanager.cpp
--- branches/KDE/3.5/kdelibs/kdeprint/cups/kmcupsmanager.cpp #483751:483752
@ -431,6 +431,9 @
keys.append("printer-is-accepting-jobs");
req.addKeyword(IPP_TAG_OPERATION,"requested-attributes",keys);
+ // filtering by username (hides printers user doesn't have allowance to use)
+ req.addName(IPP_TAG_OPERATION, "requesting-user-name", QString(cupsUser()));
+
if (req.doRequest("/printers/"))
{
processRequest(&req);
More information about the Kde-print-devel
mailing list