From 3f17deb1c41a6352f28b3e9f665a17b9231768e1 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 25 Jan 2013 17:49:44 +0100 Subject: ubus: add option to not authenticate ubus requests --- ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ubus.c') 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; } -- cgit v1.2.3