From: Jo-Philipp Wich Date: Wed, 11 Sep 2013 11:39:02 +0000 (+0200) Subject: rpcd: use "access-group" meta scope when checking menu permissions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a598c3ca618640f3149208a5e4ef60d8569b8a89;p=project%2Fluci2%2Fui.git rpcd: use "access-group" meta scope when checking menu permissions --- diff --git a/luci2/src/rpcd/luci2.c b/luci2/src/rpcd/luci2.c index f136c56..2b1a750 100644 --- a/luci2/src/rpcd/luci2.c +++ b/luci2/src/rpcd/luci2.c @@ -1998,7 +1998,7 @@ menu_access(struct blob_attr *sid, struct blob_attr *acls, struct blob_buf *e) blobmsg_for_each_attr(acl, acls, rem) { - if (!ops->session_access(blobmsg_data(sid), "luci-ui", + if (!ops->session_access(blobmsg_data(sid), "access-group", blobmsg_data(acl), "read")) { rv = false; @@ -2006,7 +2006,7 @@ menu_access(struct blob_attr *sid, struct blob_attr *acls, struct blob_buf *e) } blobmsg_add_u8(e, blobmsg_data(acl), - ops->session_access(blobmsg_data(sid), "luci-ui", + ops->session_access(blobmsg_data(sid), "access-group", blobmsg_data(acl), "write")); }