Browse Source

Minor - Update PHPDoc and PSR - refs BT#9071

Angel Fernando Quiroz Campos 10 years ago
parent
commit
f1d35f5b78
1 changed files with 7 additions and 1 deletions
  1. 7 1
      main/inc/lib/main_api.lib.php

+ 7 - 1
main/inc/lib/main_api.lib.php

@@ -7500,7 +7500,13 @@ function api_register_campus($listCampus = true) {
     // Reload the settings.
 }
 
-function api_is_student_boss () {
+/**
+ * Checks whether current user is a student boss
+ * @global array $_user
+ * @return boolean
+ */
+function api_is_student_boss ()
+{
     global $_user;
 
     return isset($_user['status']) && $_user['status'] == STUDENT_BOSS;