summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index eb10de3253..7319356568 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -729,13 +729,6 @@ Can't find printer handle we created for priunter %s\n", name ));
return WERR_ACCESS_DENIED;
}
- /*
- * An admin user always has access.
- */
-
- if (user.uid == 0 || user_in_list(uidtoname(user.uid), lp_printer_admin(snum)))
- printer_default->access_required = PRINTER_ACCESS_ADMINISTER;
-
if (printer_default->access_required & PRINTER_ACCESS_ADMINISTER)
printer_default->access_required = PRINTER_ACCESS_ADMINISTER;
else