// Stock controllers : added permissions check on employees

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9652 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-10-26 12:35:28 +00:00
parent e1e634dd6e
commit 9aea3d826d
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;