From 1752809df3fb80aab77566fd399a11d5c9d64ffc Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 17 Dec 2009 10:24:36 +0000 Subject: Use viewlibrary.check_permission from acf-core-0.9.0 --- bgp-welcome-html.lsp | 4 ++-- zebra-welcome-html.lsp | 4 ++-- 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 %> -- cgit v1.2.3