summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-03-18 11:21:15 +0100
committerKarolin Seeger <kseeger@samba.org>2010-03-18 11:24:06 +0100
commit0d6d068bc4f76c2816f969fcce6013e1945794d4 (patch)
tree19c9a4c9b401a9e2458a744219acf178eeaf5c77 /source3
parent55c45110e6994fe95867f4df3243c6829116e093 (diff)
downloadsamba-0d6d068bc4f76c2816f969fcce6013e1945794d4.tar.gz
samba-0d6d068bc4f76c2816f969fcce6013e1945794d4.tar.bz2
samba-0d6d068bc4f76c2816f969fcce6013e1945794d4.zip
s3-printing: Fix "printer admin" functionality.
Fix bug #7255 ("printer admin" parameter does not work as expected).
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index c080037111..b29000a2d8 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -5720,7 +5720,7 @@ bool print_access_check(struct auth_serversupplied_info *server_info, int snum,
/* see if we need to try the printer admin list */
- if ((access_granted == 0) &&
+ if (!NT_STATUS_IS_OK(status) &&
(token_contains_name_in_list(uidtoname(server_info->utok.uid),
NULL, NULL, server_info->ptok,
lp_printer_admin(snum)))) {