From 1f6ccd4a660ae7c3b2aa973249bf8303125066ff Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 14 Nov 2018 13:58:00 +0100 Subject: [PATCH] Fix permission to edit websites --- htdocs/website/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 71b71e241a1..d64849ddc9b 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -37,7 +37,7 @@ require_once DOL_DOCUMENT_ROOT.'/website/class/websitepage.class.php'; $langs->loadLangs(array("admin","other","website")); -if (! $user->admin) accessforbidden(); +if (! $user->rights->website->read) accessforbidden(); if (! ((GETPOST('testmenuhider','int') || ! empty($conf->global->MAIN_TESTMENUHIDER)) && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER))) {