1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Turns out an Admin user shouldn't always have access on a handle.

Jeremy.
(This used to be commit d31d2dcd22)
This commit is contained in:
Jeremy Allison 2002-03-08 00:26:18 +00:00
parent 024e69da0b
commit 194e39b179

View File

@ -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