Support » Plugin: User Access Manager » Use in PHP conditional

Viewing 1 replies (of 1 total)
  • 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 2 years, 1 month ago by  dabnpits.
Viewing 1 replies (of 1 total)
  • The topic ‘Use in PHP conditional’ is closed to new replies.