Permalink
Browse files

Fix: cib: Respect the CIB_user environment variable for ACLs

  • Loading branch information...
1 parent db129d7 commit 8414c2b4712fa3f6ce63451e1a7f217ee0b59fe4 @beekhof committed Mar 3, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/cib/cib_utils.c
View
@@ -830,5 +830,11 @@ cib_internal_op(cib_t * cib, const char *op, const char *host,
xmlNode ** output_data, int call_options, const char *user_name) =
cib->delegate_fn;
+#if ENABLE_ACL
+ if(user_name == NULL) {
+ user_name = getenv("CIB_user");
+ }
+#endif
+
return delegate(cib, op, host, section, data, output_data, call_options, user_name);
}

0 comments on commit 8414c2b

Please sign in to comment.