Skip to content

Commit

Permalink
Merge pull request #972 from LProemer/develop
Browse files Browse the repository at this point in the history
Fix: 'rights' instead of 'right'
  • Loading branch information
eldy committed May 22, 2013
2 parents 9943892 + f1d9a65 commit a9fe9cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/core/lib/company.lib.php
Expand Up @@ -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;
Expand Down

0 comments on commit a9fe9cf

Please sign in to comment.