Commit 9fd368e3 authored by Ted Trask's avatar Ted Trask

Use viewlibrary.check_permission from acf-core-0.9.0

parent 5ff4f3a8
......@@ -8,7 +8,7 @@ require("viewfunctions")
<DL>
<% local status
if viewlibrary and viewlibrary.dispatch_component then
if session.permissions.postgresql and session.permissions.postgresql.status then
if viewlibrary.check_permission("postgresql/postgresql/status") then
status = viewlibrary.dispatch_component("postgresql/postgresql/status", nil, true)
end
end %>
......
......@@ -39,7 +39,7 @@
<% end %>
</DL>
<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].createwatchlistentry then
<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createwatchlistentry") then
viewlibrary.dispatch_component("createwatchlistentry")
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