summaryrefslogtreecommitdiff
path: root/ubus.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-01-25 17:49:44 +0100
committerJo-Philipp Wich <jow@openwrt.org>2013-01-25 17:49:44 +0100
commit3f17deb1c41a6352f28b3e9f665a17b9231768e1 (patch)
treee010f745a685cabfe74c4047d88cc4d74bc8062a /ubus.c
parenteb098bcfb6b8ee61cb6ce164aea7f847ffa30dcb (diff)
ubus: add option to not authenticate ubus requests
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubus.c b/ubus.c
index d3cb6df..e128172 100644
--- a/ubus.c
+++ b/ubus.c
@@ -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;
}