fix a copy & paste bug
[project/ubus.git] / 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);