Documentation

IsAuthorized

bool
CUser::IsAuthorized()

The method checks if the site visitor has been authorized (usually called from the $USER object). Returns true if the user is authorized, or false otherwise. Non-static method.

Parameters

No parameters.

See Also

Examples of use

<?
global $USER;
if ($USER->IsAuthorized()) echo "You are authorized!";
?>


© «Bitrix24», 2001-2024
Up