Create a new permission:$Context->Configuration['PERMISSION_SEE_OTHER__SECRET_PANEL'] = '0';
$Context->Dictionary['PERMISSION_SEE_OTHER__SECRET_PANEL'] = 'Can see the secret panel';
add if ($Context->Session->User->Permission("PERMISSION_SEE_OTHER__SECRET_PANEL")) {
...
}
Thank you very much, that did solve my issue. If someone is using it theres a ")" missing in the line
if ($Context->Session->User->Permission("PERMISSION_SEE_OTHER__SECRET_PANEL") {
Thanks again.
Comments
Create a new permission:
$Context->Configuration['PERMISSION_SEE_OTHER__SECRET_PANEL'] = '0'; $Context->Dictionary['PERMISSION_SEE_OTHER__SECRET_PANEL'] = 'Can see the secret panel';
add
if ($Context->Session->User->Permission("PERMISSION_SEE_OTHER__SECRET_PANEL")) { ... }
Adding something to the panel: see the lussumo documentation.