Fixed: Permissions issues

This commit is contained in:
Sumit Panwar
2025-06-04 13:53:56 +05:30
parent b5e458e583
commit 0a6058c9f0
49 changed files with 271 additions and 271 deletions

View File

@@ -2841,31 +2841,31 @@ class AdminThemesControllerCore extends AdminController
$this->errors[] = Tools::displayError('You do not have permission to edit this.');
}
if ((isset($_GET['responsive'.$this->table]) || isset($_GET['responsive'])) && Tools::getValue($this->identifier)) {
if ($this->tabAccess['edit'] === '1') {
if ($this->tabAccess['edit'] === 1) {
$this->action = 'responsive';
} else {
$this->errors[] = Tools::displayError('You do not have permission to edit this.');
}
} elseif ((isset($_GET['default_left_column'.$this->table]) || isset($_GET['default_left_column'])) && Tools::getValue($this->identifier)) {
if ($this->tabAccess['edit'] === '1') {
if ($this->tabAccess['edit'] === 1) {
$this->action = 'defaultleftcolumn';
} else {
$this->errors[] = Tools::displayError('You do not have permission to edit this.');
}
} elseif ((isset($_GET['default_right_column'.$this->table]) || isset($_GET['default_right_column'])) && Tools::getValue($this->identifier)) {
if ($this->tabAccess['edit'] === '1') {
if ($this->tabAccess['edit'] === 1) {
$this->action = 'defaultrightcolumn';
} else {
$this->errors[] = Tools::displayError('You do not have permission to edit this.');
}
} elseif (Tools::getIsset('id_theme_meta') && Tools::getIsset('leftmeta')) {
if ($this->tabAccess['edit'] === '1') {
if ($this->tabAccess['edit'] === 1) {
$this->action = 'leftmeta';
} else {
$this->errors[] = Tools::displayError('You do not have permission to edit this.');
}
} elseif (Tools::getIsset('id_theme_meta') && Tools::getIsset('rightmeta')) {
if ($this->tabAccess['edit'] === '1') {
if ($this->tabAccess['edit'] === 1) {
$this->action = 'rightmeta';
} else {
$this->errors[] = Tools::displayError('You do not have permission to edit this.');