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.
Options

[PHP] how to know if its the admin ?

edited September 2006 in Vanilla 1.0 Help
Hi all ,

what's the PHP code to know if the visitor is the member of a specific group ?

TFYT !

Bouazza .

Comments

  • Options
    $Context->User->Role == 'role name' I believe or, possibly better to check for permissions: $Context->Session->User->Permission('PERMISSION_permission-name')
  • Options
    Thanks !
This discussion has been closed.