From bb98ade7c52f22d78b626b8563b269b25f82d12c Mon Sep 17 00:00:00 2001 From: Francesc Guasch Date: Mon, 6 Nov 2023 11:49:22 +0100 Subject: [PATCH] wip: do not show selection when no permission --- templates/main/manage_machine_edit_net.html.ep | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/main/manage_machine_edit_net.html.ep b/templates/main/manage_machine_edit_net.html.ep index 9afaedc55..8606774e8 100644 --- a/templates/main/manage_machine_edit_net.html.ep +++ b/templates/main/manage_machine_edit_net.html.ep @@ -9,17 +9,23 @@
  • <%=l 'type' %>
  • + +% if ($USER->is_admin || $USER->can_create_networks || $USER->can_manage_all_networks ) { +% } else { + {{item.type}} +% }
  • <%=l 'nat' %> <%=l 'bridge' %>
  • +% if ($USER->is_admin || $USER->can_create_networks || $USER->can_manage_all_networks ) {