// Stock controllers : added permissions check on employees

This commit is contained in:
bMancone
2011-10-26 12:35:28 +00:00
parent 51310f9f4b
commit 3d46b57d4b
3 changed files with 33 additions and 0 deletions
@@ -163,6 +163,10 @@ class AdminStockMvtControllerCore extends AdminController
$this->displayInformation($this->l('This interface allows you to display the stock movements for a selected warehouse.').'<br />');
$this->displayInformation($this->l('Also, it allows you to add and edit your own stock movement reasons.'));
// access
if (!($this->tabAccess['add'] === '1'))
$this->no_add = true;
//no link on list rows
$this->list_no_link = true;