Skip to content

Commit

Permalink
Plugin Options ACL now works.
Browse files Browse the repository at this point in the history
Fixes: #266: pluginoptions override not working during restore
  • Loading branch information
pstorz committed Jan 7, 2014
1 parent 9204714 commit 89b31c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dird/ua_acl.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 89b31c1

Please sign in to comment.