diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-25 17:49:44 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-25 17:49:44 +0100 |
commit | 3f17deb1c41a6352f28b3e9f665a17b9231768e1 (patch) | |
tree | e010f745a685cabfe74c4047d88cc4d74bc8062a /ubus.c | |
parent | eb098bcfb6b8ee61cb6ce164aea7f847ffa30dcb (diff) |
ubus: add option to not authenticate ubus requests
Diffstat (limited to 'ubus.c')
-rw-r--r-- | ubus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -371,7 +371,7 @@ static void uh_ubus_handle_request_object(struct client *cl, struct json_object goto error; } - if (!uh_ubus_allowed(du->sid, data.object, data.function)) { + if (!conf.ubus_noauth && !uh_ubus_allowed(du->sid, data.object, data.function)) { err = ERROR_ACCESS; goto error; } |