summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-08 00:26:18 +0000
committerJeremy Allison <jra@samba.org>2002-03-08 00:26:18 +0000
commit194e39b179efc040c3db65996edaf9e785ef6d78 (patch)
tree636fe62b9ea468cdff83b50482f664bf64172110
parent024e69da0b4bbbe4112d3ce5526f90eb0b85bba0 (diff)
downloadsamba-194e39b179efc040c3db65996edaf9e785ef6d78.tar.gz
samba-194e39b179efc040c3db65996edaf9e785ef6d78.tar.bz2
samba-194e39b179efc040c3db65996edaf9e785ef6d78.zip
Turns out an Admin user shouldn't always have access on a handle.
Jeremy. (This used to be commit d31d2dcd22e1be2c26ea315e1b0e8442822a9a0f)
-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