Beispiel #1
0
 /**
  * Constructor
  * @param string $debuginfo optional more detailed information
  */
 function __construct($debuginfo = NULL) {
     global $CFG;
     $hier = new hierarchy();
     if ($hier->is_authuser('local/collegestructure:manage') || is_siteadmin()) {
         $url = $CFG->wwwroot . '/local/collegestructure/assignusers.php';
         $error_string = 'notassignedschool_ra';
     } else {
         $url = '';
         $error_string = 'notassignedschool_otherrole';
     }
     parent::__construct($error_string, 'local_collegestructure', $url, NULL, $debuginfo);
 }