summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-10-01 21:03:15 +0200
committerAndreas Schneider <asn@samba.org>2010-10-02 00:04:45 +0200
commitb3fd5e11e5c380e040d3fd208a1c904404b82c43 (patch)
tree12722e35803085f95594907b889625c4ed8887db /source3/rpc_server
parent100843ac239688a3c328f834b7a9f90478e2e8f9 (diff)
downloadsamba-b3fd5e11e5c380e040d3fd208a1c904404b82c43.tar.gz
samba-b3fd5e11e5c380e040d3fd208a1c904404b82c43.tar.bz2
samba-b3fd5e11e5c380e040d3fd208a1c904404b82c43.zip
s3-spoolss: Fixed print_access_check server_info.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index bb3b05d1b1..a8dac87bc3 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -1823,7 +1823,7 @@ WERROR _spoolss_OpenPrinterEx(struct pipes_struct *p,
if (!user_ok_token(uidtoname(p->server_info->utok.uid), NULL,
p->server_info->ptok, snum) ||
- !print_access_check(get_server_info_system(),
+ !print_access_check(p->server_info,
p->msg_ctx,
snum,
r->in.access_mask)) {
@@ -7796,7 +7796,7 @@ static WERROR spoolss_addprinterex_level_2(struct pipes_struct *p,
}
/* you must be a printer admin to add a new printer */
- if (!print_access_check(get_server_info_system(),
+ if (!print_access_check(p->server_info,
p->msg_ctx,
snum,
PRINTER_ACCESS_ADMINISTER)) {