From 38a78c69253e144f41c1272729cafda9c93cd978 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 17 Dec 2009 10:23:18 +0000 Subject: Use viewlibrary.check_permission from acf-core-0.9.0 --- samba-listshares-html.lsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samba-listshares-html.lsp b/samba-listshares-html.lsp index 0e36fdf..1091c94 100644 --- a/samba-listshares-html.lsp +++ b/samba-listshares-html.lsp @@ -17,10 +17,10 @@ require("viewfunctions") <% for i,share in ipairs(view.value) do %> - <% if session.permissions.samba.editshare then %> + <% if viewlibrary.check_permission("editshare") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editshare?name="..share.name.."&redir="..page_info.orig_action, label="Edit "} %> <% end %> - <% if session.permissions.samba.deleteshare then %> + <% if viewlibrary.check_permission("deleteshare") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteshare?name="..share.name, label="Delete "} %> <% end %> @@ -35,7 +35,7 @@ No Shares Found <% end %> -<% if viewlibrary and viewlibrary.dispatch_component and session.permissions.samba.createshare then %> +<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createshare") then %>

Create new share

-- cgit v1.2.3