mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3-spoolss: Fixed print_access_check server_info.
This commit is contained in:
parent
100843ac23
commit
b3fd5e11e5
@ -2102,7 +2102,7 @@ bool print_access_check(const struct auth_serversupplied_info *server_info,
|
||||
}
|
||||
|
||||
result = winreg_get_printer_secdesc(mem_ctx,
|
||||
server_info,
|
||||
get_server_info_system(),
|
||||
msg_ctx,
|
||||
pname,
|
||||
&secdesc);
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user