summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openssh-welcome-html.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssh-welcome-html.lsp b/openssh-welcome-html.lsp
index d627bd6..e194aec 100644
--- a/openssh-welcome-html.lsp
+++ b/openssh-welcome-html.lsp
@@ -1,10 +1,10 @@
<% local data, viewlibrary, page_info, session = ...
%>
-<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].connectedpeers then
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("connectedpeers") then
viewlibrary.dispatch_component("status")
end %>
-<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].connectedpeers then
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("connectedpeers") then
viewlibrary.dispatch_component("connectedpeers")
end %>