check('user_id:' . $auth->get('user_id'), 'survey', 'any')) {
// User has access to view responses from 'any' survey.
$upcoming_surveys = Survey::get(array('status' => 'queued'), Model::INNUMERABLE);
} else {
// User is limited to view questions only for surveys in his account.
$upcoming_surveys = Survey::get(array(
'status' => 'queued',
'account_id' => $auth->get('account_id')
), Model::INNUMERABLE);
}
if ($upcoming_surveys) {
?>