From f1d9a6545c510601e0abadc3b54f7adbbc632f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Pr=C3=B6mer?= Date: Wed, 22 May 2013 14:59:21 +0200 Subject: [PATCH] Fix: 'rights' instead of 'right' --- htdocs/core/lib/company.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php index de42a730b2b..6279e4ee9a0 100644 --- a/htdocs/core/lib/company.lib.php +++ b/htdocs/core/lib/company.lib.php @@ -60,15 +60,15 @@ function societe_prepare_head($object) $head[$h][2] = 'supplier'; $h++; } - if (! empty($conf->agenda->enabled) && !empty($user->right->agenda->lire)) - { + if (! empty($conf->agenda->enabled) && (!empty($user->rights->agenda->myactions->read) || !empty($user->rights->agenda->allactions->read) )) + { $head[$h][0] = DOL_URL_ROOT.'/societe/agenda.php?socid='.$object->id; $head[$h][1] = $langs->trans("Agenda"); $head[$h][2] = 'agenda'; $h++; } //show categorie tab - if (! empty($conf->categorie->enabled) && !empty($user->right->categorie->lire)) + if (! empty($conf->categorie->enabled) && ! empty($user->rights->categorie->lire)) { $type = 2; if ($object->fournisseur) $type = 1;