Commit e2c82fde authored by Ted Trask's avatar Ted Trask

Use viewlibrary.check_permission from acf-core-0.9.0

parent 9f26c22e
......@@ -15,8 +15,8 @@ require("viewfunctions")
<TR>
<TD style="padding-right:20px;white-space:nowrap;">
<%
if session.permissions[page_info.controller].deletepeer then io.write(html.link{value = "deletepeer?name=" .. file, label="Delete " }) end
if session.permissions[page_info.controller].editpeer then io.write(html.link{value = "editpeer?name=" .. file.."&redir="..page_info.orig_action, label="Edit " }) end
if viewlibrary.check_permission("deletepeer") then io.write(html.link{value = "deletepeer?name=" .. file, label="Delete " }) end
if viewlibrary.check_permission("editpeer") then io.write(html.link{value = "editpeer?name=" .. file.."&redir="..page_info.orig_action, label="Edit " }) end
%>
</TD>
<TD style="white-space:nowrap;" width="90%"><%= html.html_escape(string.gsub(file, "^.*/", "")) %></TD>
......@@ -24,7 +24,7 @@ require("viewfunctions")
<% end %>
</TABLE></DL>
<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].createpeer then
<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createpeer") then
viewlibrary.dispatch_component("createpeer")
end %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment