summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-10-22 15:58:40 -0700
committerJeremy Allison <jra@samba.org>2010-10-22 23:41:36 +0000
commit272feb7bd133344e88864ffc75d251451ddd681c (patch)
treeafde6cf4f229d0e2611af14be1210d9b33b2a31a /source3/printing
parentd46ca0eb801f2664cedb17c50a9a94e58ebdb0b6 (diff)
downloadsamba-272feb7bd133344e88864ffc75d251451ddd681c.tar.gz
samba-272feb7bd133344e88864ffc75d251451ddd681c.tar.bz2
samba-272feb7bd133344e88864ffc75d251451ddd681c.zip
Revert "Wrap security_token_has_privilege() with a check for lp_enable_privileges(). Needed"
Not needed - privileges code prevents "enable privileges = no" from adding privileges anyway. This reverts commit a8b95686a7bde3f96f141b6938e24e101567ef54. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 22 23:41:36 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 026161b26b..84de565159 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -2082,7 +2082,7 @@ bool print_access_check(const struct auth_serversupplied_info *server_info,
/* Always allow root or SE_PRINT_OPERATROR to do anything */
if (server_info->utok.uid == sec_initial_uid()
- || s3_security_token_has_privilege(server_info->ptok, SEC_PRIV_PRINT_OPERATOR)) {
+ || security_token_has_privilege(server_info->ptok, SEC_PRIV_PRINT_OPERATOR)) {
return True;
}