From: Felix Fietkau Date: Wed, 9 Dec 2015 16:36:08 +0000 (+0100) Subject: ubusd: remove a faulty and redundant check X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=152dd96f63a4af8aafc6c61b6139850af8fe8395;p=oweals%2Fubus.git ubusd: remove a faulty and redundant check Signed-off-by: Felix Fietkau --- diff --git a/ubusd_acl.c b/ubusd_acl.c index 491b233..e5a7b56 100644 --- a/ubusd_acl.c +++ b/ubusd_acl.c @@ -297,9 +297,6 @@ ubusd_acl_file_add(struct ubusd_acl_file *file) else return; - if (!tb[ACL_ACCESS] && !tb[ACL_PUBLISH] && !tb[ACL_INHERIT]) - return; - if (tb[ACL_ACCESS]) blobmsg_for_each_attr(cur, tb[ACL_ACCESS], rem) ubusd_acl_add_access(file, cur);