diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-12-17 10:27:15 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-12-17 10:27:15 +0000 |
commit | 9fd368e35b70d3aa003a05ba1ee64ecb6560fd37 (patch) | |
tree | 3b475d92dea1e6a85d361b70d3dd5679f12796d4 | |
parent | 5ff4f3a8061cef722b48bf0ad94889a771027f0d (diff) | |
download | acf-weblog-9fd368e35b70d3aa003a05ba1ee64ecb6560fd37.tar.bz2 acf-weblog-9fd368e35b70d3aa003a05ba1ee64ecb6560fd37.tar.xz |
Use viewlibrary.check_permission from acf-core-0.9.0
-rw-r--r-- | weblog-status-html.lsp | 2 | ||||
-rw-r--r-- | weblog-viewwatchlist-html.lsp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/weblog-status-html.lsp b/weblog-status-html.lsp index 9ff17d7..e2a9c47 100644 --- a/weblog-status-html.lsp +++ b/weblog-status-html.lsp @@ -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 %> diff --git a/weblog-viewwatchlist-html.lsp b/weblog-viewwatchlist-html.lsp index ba7b88a..16fa298 100644 --- a/weblog-viewwatchlist-html.lsp +++ b/weblog-viewwatchlist-html.lsp @@ -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 %> |