summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 %>