From a598c3ca618640f3149208a5e4ef60d8569b8a89 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 11 Sep 2013 13:39:02 +0200 Subject: [PATCH] rpcd: use "access-group" meta scope when checking menu permissions --- luci2/src/rpcd/luci2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")); } -- 2.30.2