Skip to content

Commit

Permalink
FIX [ bug #3321 ] Users with certain permissions were shown a "forbid…
Browse files Browse the repository at this point in the history
…den access" page even if they had the rights

Close #3321
  • Loading branch information
marcosgdf committed Aug 14, 2015
1 parent c73fe96 commit b3a7b44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -20,6 +20,7 @@ FIX: Not showing delivery date on rouget pdf
FIX: Not showing task extrafields when creating from left menu
FIX [ bug #3288 ] Tasks box is not properly drawn
FIX [ bug #3211 ] Outstading bill amount of a client showed wrong amounts
FIX [ bug #3321 ] Users with certain permissions were shown a "forbidden access" page even if they had the rights

NEW: Created new ContratLigne::insert function

Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/security.lib.php
Expand Up @@ -451,7 +451,7 @@ function restrictedArea($user, $features, $objectid=0, $dbtablename='', $feature
if (empty($dbt_keyfield)) dol_print_error('','Param dbt_keyfield is required but not defined');


$sql = "SELECT dbt.id";
$sql = "SELECT dbt.$dbt_select";
$sql.= " FROM ".MAIN_DB_PREFIX.$dbtablename." as dbt";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON (dbt.".$dbt_keyfield." = s.rowid)";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON (sc.fk_soc = dbt.".$dbt_keyfield.")";
Expand Down

0 comments on commit b3a7b44

Please sign in to comment.