// Changes to BO permissions management

This commit is contained in:
tDidierjean
2012-01-11 16:19:19 +00:00
parent d900e94057
commit 8c706bf5a6
5 changed files with 47 additions and 51 deletions
+2 -5
View File
@@ -28,8 +28,6 @@
class AdminControllerCore extends Controller
{
public $path;
public static $currentIndex;
public $content;
public $warnings = array();
@@ -1860,9 +1858,8 @@ class AdminControllerCore extends Controller
}
else if (isset($_GET['update'.$this->table]) && isset($_GET['id_'.$this->table]))
{
if ($this->tabAccess['edit'] === '1')
$this->display = 'edit';
else
$this->display = 'edit';
if ($this->tabAccess['edit'] !== '1')
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
}
else if (isset($_GET['view'.$this->table]))