ubusd: fix inverted check in ubusd_reply_add
authorDenis Osvald <denis.osvald@sartura.hr>
Thu, 25 Aug 2016 11:54:54 +0000 (13:54 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 5 Sep 2016 11:59:34 +0000 (13:59 +0200)
Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
ubusd_acl.c

index 2700c863da144a7a11e60a26aade4b1913a9d5eb..4b72663d25aa983cb65b10fae8ba029b099c7c45 100644 (file)
@@ -434,7 +434,7 @@ ubusd_reply_add(struct ubus_object *obj)
                if (!acl->priv)
                        continue;
 
-               if (!ubusd_acl_match_path(obj->path.key, acl->avl.key, NULL))
+               if (ubusd_acl_match_path(obj->path.key, acl->avl.key, NULL))
                        continue;
 
                c = blobmsg_open_table(&b, NULL);