fix a copy & paste bug
authorJohn Crispin <blogic@openwrt.org>
Wed, 1 Jul 2015 00:22:36 +0000 (02:22 +0200)
committerJohn Crispin <blogic@openwrt.org>
Wed, 1 Jul 2015 00:22:36 +0000 (02:22 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
ubusd_acl.c

index 3c16114e57eb6b3303f2d493eb51a691c3cf1292..4d047b7a240e9fb3454a12a6b931a60a39bd06ee 100644 (file)
@@ -100,7 +100,7 @@ ubusd_acl_check(struct ubus_client *cl, const char *obj,
        struct blob_attr *cur;
        int rem;
 
-       if (!cl->gid && !cl->gid)
+       if (!cl->gid && !cl->uid)
                return 0;
 
        acl = avl_find_ge_element(&ubusd_acls, obj, acl, avl);