Skip to content

Commit

Permalink
fix unauthorized access to margins for external user
Browse files Browse the repository at this point in the history
  • Loading branch information
altairis-tof committed May 19, 2013
1 parent 7efe394 commit 347fc6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/modules/modMargin.class.php
Expand Up @@ -80,7 +80,7 @@ function __construct($db)
// New pages on tabs
$this->tabs = array(
'product:+margin:Margins:margins:$conf->margin->enabled:/margin/tabs/productMargins.php?id=__ID__',
'thirdparty:+margin:Margins:margins:$conf->margin->enabled:/margin/tabs/thirdpartyMargins.php?socid=__ID__'
'thirdparty:+margin:Margins:margins:$conf->margin->enabled && empty($user->societe_id)s:/margin/tabs/thirdpartyMargins.php?socid=__ID__'
);


Expand Down

0 comments on commit 347fc6d

Please sign in to comment.