mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Removed null user checks to enable lanman print queue pausing and print job
deleting.
This commit is contained in:
parent
9998518a69
commit
e40a0e2f52
@ -518,8 +518,6 @@ BOOL print_job_delete(struct current_user *user, int jobid)
|
||||
int snum = print_job_snum(jobid);
|
||||
BOOL owner;
|
||||
|
||||
if (!user) return False;
|
||||
|
||||
owner = is_owner(user, jobid);
|
||||
|
||||
/* Check access against security descriptor or whether the user
|
||||
@ -999,8 +997,6 @@ BOOL print_queue_pause(struct current_user *user, int snum, int *errcode)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (!user) return False;
|
||||
|
||||
if (!print_access_check(user, snum, PRINTER_ACCESS_ADMINISTER)) {
|
||||
*errcode = ERROR_ACCESS_DENIED;
|
||||
return False;
|
||||
|
Loading…
x
Reference in New Issue
Block a user