From 812ea8f66f388aa646d35d7e008d60e2c8134d4a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Jan 2026 16:23:39 +0100 Subject: [PATCH] Debug v23 --- htdocs/website/index.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 58a68b66645..55b2b44e72b 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -3190,9 +3190,11 @@ if (!GETPOST('hide_websitemenu')) { // Button Add new website $urltocreatenewwebsite = $_SERVER["PHP_SELF"].'?action=createsite'; - print ''; - print ''; - print ''; + if ($user->hasRight('website', 'write')) { + print ''; + print ''; + print ''; + } // List of website print ''; @@ -3475,10 +3477,11 @@ if (!GETPOST('hide_websitemenu')) { print ''; // Button Add new web page - print ''; - print 'ref).'" class=""'.$disabled.' title="'.dol_escape_htmltag($langs->trans("AddPage")).'">'; - print ''; - + if ($user->hasRight('website', 'write')) { + print ''; + print 'ref).'" class=""'.$disabled.' title="'.dol_escape_htmltag($langs->trans("AddPage")).'">'; + print ''; + } $out = '';