Skip to content

Commit

Permalink
Fix #12371 : access rights on contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-maxime committed Nov 30, 2019
1 parent 9095482 commit 916954b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/company.lib.php
Expand Up @@ -52,7 +52,7 @@ function societe_prepare_head(Societe $object)

if (empty($conf->global->MAIN_SUPPORT_SHARED_CONTACT_BETWEEN_THIRDPARTIES))
{
if (empty($conf->global->MAIN_DISABLE_CONTACTS_TAB))
if (empty($conf->global->MAIN_DISABLE_CONTACTS_TAB) && $user->rights->societe->contact->lire)
{
//$nbContact = count($object->liste_contact(-1,'internal')) + count($object->liste_contact(-1,'external'));
$nbContact = 0; // TODO
Expand Down
1 change: 1 addition & 0 deletions htdocs/societe/contact.php
Expand Up @@ -88,6 +88,7 @@

// Security check
$result = restrictedArea($user, 'societe', $socid, '&societe', '', 'fk_soc', 'rowid', $objcanvas);
if(empty($user->rights->societe->contact->lire)) accessforbidden();



Expand Down

0 comments on commit 916954b

Please sign in to comment.