public static function getRolePrivileges()
 {
     return GcrUserRoleFactory::getUserRoleClassnames();
 }
 public function validateRole($role)
 {
     if (!in_array($role, GcrUserRoleFactory::getUserRoleClassnames())) {
         global $CFG;
         $CFG->current_app->gcError('Warning: user role type does not exist: ' . $role);
         return false;
     }
     return true;
 }