summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 8dadebfa89..b11effdf93 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -10132,3 +10132,11 @@ bool lp_readraw(void)
}
return _lp_readraw();
}
+
+bool s3_security_token_has_privilege(const struct security_token *token, enum sec_privilege privilege)
+{
+ if (!lp_enable_privileges()) {
+ return false;
+ }
+ return security_token_has_privilege(token, privilege);
+}