fix inverted apply_running check

Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
John Crispin 2013-12-18 13:56:54 +01:00
parent 065d8f47fc
commit 326f5bcaf6

2
uci.c
View file

@ -1124,7 +1124,7 @@ rpc_uci_revert_commit(struct ubus_context *ctx, struct blob_attr *msg, bool comm
struct uci_package *p = NULL;
struct uci_ptr ptr = { 0 };
if (!apply_running)
if (apply_running)
return UBUS_STATUS_PERMISSION_DENIED;
blobmsg_parse(rpc_uci_config_policy, __RPC_C_MAX, tb,