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 = '';