From: John Crispin Date: Wed, 1 Jul 2015 00:22:36 +0000 (+0200) Subject: fix a copy & paste bug X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=7ec9b8dec77b969bfc860995f96fe91fd40ba5e4;hp=ab1bffddb3574d18d36f321dce81e7e170abb3d6 fix a copy & paste bug Signed-off-by: John Crispin --- diff --git a/ubusd_acl.c b/ubusd_acl.c index 3c16114..4d047b7 100644 --- a/ubusd_acl.c +++ b/ubusd_acl.c @@ -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);