Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Sidepanel by roles

edited August 2006 in Vanilla 1.0 Help
Hi, is there a way to show some things with the sidepanel extensions to some roles and hide it for others? Thanks

Comments

  • Yes, but it's up to the extension author to implement it. The upside is that it's possible to add it yourself if you're good with php.
  • Me no good with php :( But i'll do some research. Thanks.
  • edited August 2006
    You don't to be that good with php...

    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.
  • 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.
This discussion has been closed.