Adding api_not_allowed

1.9.x
Julio Montoya 12 years ago
parent b9b8c56c16
commit f8b6a06db4
  1. 2
      main/work/download.php
  2. 4
      main/work/view.php

@ -93,5 +93,7 @@ if (!empty($course_info['real_id'])) {
api_not_allowed();
}
}
} else {
api_not_allowed();
}
exit;

@ -41,6 +41,8 @@ if (user_is_author($id) || $course_info['show_score'] == 0 && $work['active'] ==
$tpl->assign('content', $content);
$tpl->display_one_col_template();
} else {
api_not_allowed();
api_not_allowed(true);
}
} else {
api_not_allowed(true);
}

Loading…
Cancel
Save