luci2: change ops->access to ops->session_access to accomodate for changed plugin api
This commit is contained in:
parent
059a6df1fd
commit
ad8e937f97
1 changed files with 4 additions and 4 deletions
4
luci2.c
4
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)
|
blobmsg_for_each_attr(acl, acls, rem)
|
||||||
{
|
{
|
||||||
if (!ops->access(blobmsg_data(sid), "luci-ui",
|
if (!ops->session_access(blobmsg_data(sid), "luci-ui",
|
||||||
blobmsg_data(acl), "read"))
|
blobmsg_data(acl), "read"))
|
||||||
{
|
{
|
||||||
rv = false;
|
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),
|
blobmsg_add_u8(e, blobmsg_data(acl),
|
||||||
ops->access(blobmsg_data(sid), "luci-ui",
|
ops->session_access(blobmsg_data(sid), "luci-ui",
|
||||||
blobmsg_data(acl), "write"));
|
blobmsg_data(acl), "write"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue