summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;