summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-10-18 06:31:14 +0000
committerTim Potter <tpot@samba.org>2000-10-18 06:31:14 +0000
commit7b0a62c8cd9523df86f1d9aee3e3700f494a8e78 (patch)
treeeff7705de9489490b2503127bec7fc03bd623268 /source3
parentecd90a0bf45d560b4532fe7ce04332b53947fbdc (diff)
downloadsamba-7b0a62c8cd9523df86f1d9aee3e3700f494a8e78.tar.gz
samba-7b0a62c8cd9523df86f1d9aee3e3700f494a8e78.tar.bz2
samba-7b0a62c8cd9523df86f1d9aee3e3700f494a8e78.zip
Removed null user checks to enable lanman print queue pausing and print job
deleting. (This used to be commit e40a0e2f52326199264d622c4f11877f20e4ebce)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/printing.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index d856023567..c691573c0a 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -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;