projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubus: add option to not authenticate ubus requests
[project/uhttpd.git]
/
ubus.c
diff --git
a/ubus.c
b/ubus.c
index
d3cb6df
..
e128172
100644
(file)
--- 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;
}