diff options
author | Jeremy Allison <jra@samba.org> | 2010-03-18 11:21:15 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-03-18 11:24:06 +0100 |
commit | 0d6d068bc4f76c2816f969fcce6013e1945794d4 (patch) | |
tree | 19c9a4c9b401a9e2458a744219acf178eeaf5c77 /source3/printing | |
parent | 55c45110e6994fe95867f4df3243c6829116e093 (diff) | |
download | samba-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/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
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)))) { |