ubusd: allow all object access if uid=0 (ignore gid)
[project/ubus.git] / ubusd_acl.c
index 9c2775063db7ea048d77ffa82f8ecfa6145336af..eb5cec55aeb14aae42864ca6b69e878636985199 100644 (file)
@@ -101,7 +101,7 @@ ubusd_acl_check(struct ubus_client *cl, const char *obj,
        struct blob_attr *cur;
        int rem;
 
-       if (!cl->gid && !cl->uid)
+       if (!cl->uid)
                return 0;
 
        acl = avl_find_ge_element(&ubusd_acls, obj, acl, avl);