From 89b31c1cc48bf1525500d1b4bfe0986f07ff188a Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Tue, 7 Jan 2014 13:48:14 +0100 Subject: [PATCH] Plugin Options ACL now works. Fixes: #266: pluginoptions override not working during restore --- src/dird/ua_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dird/ua_acl.c b/src/dird/ua_acl.c index 2d6e9d91497..7368658af89 100644 --- a/src/dird/ua_acl.c +++ b/src/dird/ua_acl.c @@ -40,7 +40,7 @@ bool acl_access_ok(UAContext *ua, int acl, const char *item) bool acl_access_ok(UAContext *ua, int acl, const char *item, int len) { /* The resource name contains nasty characters */ - if (acl != Where_ACL && !is_name_valid(item, NULL)) { + if (acl != Where_ACL && acl != PluginOptions_ACL && !is_name_valid(item, NULL)) { Dmsg1(1400, "Access denied for item=%s\n", item); return false; }