From c53535b50bd0bd716f1357d28a2a8aba4712a718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Wed, 12 Jun 2024 14:40:47 +0200 Subject: [PATCH] Do not show cancel button to update users --- firmwaretool.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/firmwaretool.php b/firmwaretool.php index 1d7a7bd..dc7d58e 100644 --- a/firmwaretool.php +++ b/firmwaretool.php @@ -29,11 +29,15 @@ $view = ' if (isset($_GET['equipmentID'])){$returnpage = 'equipment&equipmentID='.$_GET['equipmentID']; } else {$returnpage = 'dashboard';} -$view .= ' -
- '.$button_cancel.' -
-'; + +//SHOW BACK BUTTON ONLY FOR PORTAL USERS +if (isAllowed('dashboard',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ + $view .= ' +
+ '.$button_cancel.' +
+ '; +} $view .= '