| Summary: | Send requesting-user-name in CUPS_GET_PRINTERS and CUPS_GET_CLASSES | ||
|---|---|---|---|
| Product: | [Unmaintained] kdeprint | Reporter: | Erik forsberg <forsberg+kde> |
| Component: | general | Assignee: | KDEPrint Devel Mailinglist <kde-print-bugs-null> |
| Status: | CLOSED FIXED | ||
| Severity: | wishlist | CC: | jlayt |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Diff against svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs/kdeprint Revision 476094 to fix problem | ||
|
Description
Erik forsberg
2005-11-01 11:38:22 UTC
Created attachment 13242 [details]
Diff against svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs/kdeprint Revision 476094 to fix problem
This patch adds a requesting-user-name to void
KMCupsManager::loadServerPrinters(), which seems to be the correct place. At
least it limits the list shown by kprinter.
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);
Closing old Resolved status bug. |