Skip to content
Snippets Groups Projects
Commit b440ad4e authored by Claudio Aschieri's avatar Claudio Aschieri
Browse files

FIX #5134: fixed action 'edit' top page

parent 9ac05fa8
No related branches found
No related tags found
No related merge requests found
......@@ -1122,7 +1122,7 @@ else
else if ($object->id > 0)
{
// Fiche en mode edition
if ($action == 'edit' && ($user->rights->produit->creer || $user->rights->service->creer))
if ($action == 'edit' && ((($object->type == Product::TYPE_PRODUCT && $user->rights->produit->creer) || ($object->type == Product::TYPE_SERVICE && $user->rights->service->creer))))
{
//WYSIWYG Editor
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment