From ad8e937f97a5701462d2b5d993d8e8c2abe86401 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 3 Sep 2013 12:25:14 +0200 Subject: [PATCH] luci2: change ops->access to ops->session_access to accomodate for changed plugin api --- luci2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/luci2.c b/luci2.c index 276c60d..50381a2 100644 --- a/luci2.c +++ b/luci2.c @@ -1998,16 +1998,16 @@ menu_access(struct blob_attr *sid, struct blob_attr *acls, struct blob_buf *e) blobmsg_for_each_attr(acl, acls, rem) { - if (!ops->access(blobmsg_data(sid), "luci-ui", - blobmsg_data(acl), "read")) + if (!ops->session_access(blobmsg_data(sid), "luci-ui", + blobmsg_data(acl), "read")) { rv = false; break; } blobmsg_add_u8(e, blobmsg_data(acl), - ops->access(blobmsg_data(sid), "luci-ui", - blobmsg_data(acl), "write")); + ops->session_access(blobmsg_data(sid), "luci-ui", + blobmsg_data(acl), "write")); } blobmsg_close_table(e, c);