summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-12-17 10:24:36 +0000
committerTed Trask <ttrask01@yahoo.com>2009-12-17 10:24:36 +0000
commit1752809df3fb80aab77566fd399a11d5c9d64ffc (patch)
tree6f4167b1b33bf2f64f9fad8736ee4b2e7b0c3240
parent36f1b5dad3c1968de9a6b010ce15fb346cc553ba (diff)
downloadacf-quagga-1752809df3fb80aab77566fd399a11d5c9d64ffc.tar.bz2
acf-quagga-1752809df3fb80aab77566fd399a11d5c9d64ffc.tar.xz
Use viewlibrary.check_permission from acf-core-0.9.0
-rw-r--r--bgp-welcome-html.lsp4
-rw-r--r--zebra-welcome-html.lsp4
2 files changed, 4 insertions, 4 deletions
diff --git a/bgp-welcome-html.lsp b/bgp-welcome-html.lsp
index 3670b93..251c503 100644
--- a/bgp-welcome-html.lsp
+++ b/bgp-welcome-html.lsp
@@ -2,9 +2,9 @@
require("viewfunctions")
%>
-<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].status then
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("status") then
viewlibrary.dispatch_component("status")
end %>
-<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].details then
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("details") then
viewlibrary.dispatch_component("details")
end %>
diff --git a/zebra-welcome-html.lsp b/zebra-welcome-html.lsp
index 3670b93..251c503 100644
--- a/zebra-welcome-html.lsp
+++ b/zebra-welcome-html.lsp
@@ -2,9 +2,9 @@
require("viewfunctions")
%>
-<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].status then
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("status") then
viewlibrary.dispatch_component("status")
end %>
-<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].details then
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("details") then
viewlibrary.dispatch_component("details")
end %>