diff options
-rw-r--r-- | cron-listjobs-html.lsp | 2 | ||||
-rw-r--r-- | interfaces-read-html.lsp | 8 | ||||
-rw-r--r-- | logfiles-status-html.lsp | 4 | ||||
-rw-r--r-- | rc-status-html.lsp | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/cron-listjobs-html.lsp b/cron-listjobs-html.lsp index 8ba2a23..6cc4463 100644 --- a/cron-listjobs-html.lsp +++ b/cron-listjobs-html.lsp @@ -54,6 +54,6 @@ No jobs </DL> <% end %> -<% if viewlibrary and viewlibrary.dispatch_component and session.permissions.cron.createjob then +<% if viewlibrary.check_permission("createjob") then viewlibrary.dispatch_component("createjob") end %> diff --git a/interfaces-read-html.lsp b/interfaces-read-html.lsp index 4bb35d7..2409f10 100644 --- a/interfaces-read-html.lsp +++ b/interfaces-read-html.lsp @@ -41,16 +41,16 @@ end %> end end %> <TR> - <% if session.permissions.interfaces.update then %> + <% if viewlibrary.check_permission("update") then %> <A HREF='update?name=<%= html.html_escape(interface.name.value) %>&redir=read'>Edit </A> <% end - if session.permissions.interfaces.delete then %> + if viewlibrary.check_permission("delete") then %> <A HREF='delete?name=<%= html.html_escape(interface.name.value) %>'>Delete </A> <% end - if session.permissions.interfaces.ifup then %> + if viewlibrary.check_permission("ifup") then %> <A HREF='ifup?name=<%= html.html_escape(interface.name.value) %>'>ifup </A> <% end - if session.permissions.interfaces.ifdown then %> + if viewlibrary.check_permission("ifdown") then %> <A HREF='ifdown?name=<%= html.html_escape(interface.name.value) %>'>ifdown </A> <% end %> </TR> diff --git a/logfiles-status-html.lsp b/logfiles-status-html.lsp index e508da9..1610417 100644 --- a/logfiles-status-html.lsp +++ b/logfiles-status-html.lsp @@ -7,7 +7,7 @@ <DL> <TABLE> <TR style="background:#eee;font-weight:bold;"> - <% if session.permissions.logfiles.delete then %> + <% if viewlibrary.check_permission("delete") then %> <TD style="padding-right:20px;white-space:nowrap;" class="header">Delete</TD> <% end %> <TD style="padding-right:20px;white-space:nowrap;" class="header">View</TD> @@ -20,7 +20,7 @@ <% for i,file in ipairs(view.value) do %> <TR> - <% if session.permissions.logfiles.delete then %> + <% if viewlibrary.check_permission("delete") then %> <TD style="padding-right:20px;white-space:nowrap;"> <% if file.value.inuse.value then %> in use diff --git a/rc-status-html.lsp b/rc-status-html.lsp index 851050e..446c826 100644 --- a/rc-status-html.lsp +++ b/rc-status-html.lsp @@ -7,7 +7,7 @@ <DL> <TABLE> <TR> -<% if session.permissions.rc.edit then %> +<% if viewlibrary.check_permission("edit") then %> <TD class='header'>Action</TD> <% end %> <TD class='header'>Service Name</TD><TD class='header'>Runlevels</TD> @@ -15,7 +15,7 @@ <% for i,item in ipairs(view.value) do %> <TR> - <% if session.permissions.rc.edit then %> + <% if viewlibrary.check_permission("edit") then %> <TD><%= html.link{value="edit?servicename="..item.servicename.."&redir="..page_info.orig_action, label="Edit " } %> <% end %> <TD><%= html.html_escape(item.servicename) %></TD><TD><%= html.html_escape(table.concat(item.runlevels, ", ")) %> </TD> |