<?
$STATUS_ID = 1;
// obtain the current user permissions for the specified status
$arPerm = CFormStatus::GetPermissions($STATUS_ID);
if (in_array("VIEW", $arPerm))
echo "You can view the results in this status";
if (in_array("EDIT", $arPerm))
echo "You can edit the results in this status";
if (in_array("MOVE", $arPerm))
echo "You can assign this status to a result";
if (in_array("DELETE", $arPerm))
echo "You can delete the results in this status";
?>