Jelajahi Sumber

[svn r12700] Print headers in "not allowed" message

Yannick Warnier 17 tahun lalu
induk
melakukan
8193edbcb9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      main/user/user_add.php

+ 1 - 1
main/user/user_add.php

@@ -37,7 +37,7 @@ $language_file="registration";
 include("../inc/global.inc.php");
 $this_section=SECTION_COURSES;
 
-if (! ($is_courseAdmin || $is_platformAdmin)) die ("not allowed");
+if (! ($is_courseAdmin || $is_platformAdmin)) api_not_allowed(true);
 
 $currentCourseID   = $_course['sysCode'];
 $currentCourseName = $_course['official_code'];