diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-02-24 02:47:14 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-02-24 02:47:14 +0000 |
commit | e075e1dfa9a88b5edadc9c989200a52f48182cef (patch) | |
tree | 3d8703db464b8832b364f1ac78c32952beb7dde4 /source3/printing | |
parent | e72ecdc862804339912325fe848401e8ec57cde7 (diff) | |
download | samba-e075e1dfa9a88b5edadc9c989200a52f48182cef.tar.gz samba-e075e1dfa9a88b5edadc9c989200a52f48182cef.tar.bz2 samba-e075e1dfa9a88b5edadc9c989200a52f48182cef.zip |
Missed one in the previous merge - user_ok() and user_in_group() now take
an optional list of groups the user is in.
(This used to be commit 39f3bec0f62520e49a087403287330ed5f3a79c5)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 10d490a4c1..836324ecc9 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -4734,7 +4734,7 @@ BOOL print_access_check(struct current_user *user, int snum, int access_type) /* Always allow root or printer admins to do anything */ if (user->uid == 0 || - user_in_list(uidtoname(user->uid), lp_printer_admin(snum))) { + user_in_list(uidtoname(user->uid), lp_printer_admin(snum), user->groups, user->ngroups)) { return True; } |