Browse Source

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

Yannick Warnier 17 năm trước cách đây
mục cha
commit
8193edbcb9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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'];