Viewing 1 replies (of 1 total)
  • dabnpits

    (@dabnpits)

    To check if the current user has access:

    <?php 
    global $oUserAccessManager;
    $oUamAccessHandler = $oUserAccessManager->getAccessHandler();
    
    if( $oUamAccessHandler->checkUserAccess() ) {
        echo 'has access';
    } else {
        echo 'no access';
    }
    ?>
    • This reply was modified 8 years ago by dabnpits.
Viewing 1 replies (of 1 total)
  • The topic ‘Use in PHP conditional’ is closed to new replies.