// broken access settings, and user doesn't have the permissions to fix it: $mailto = 'mailto:' . SUPPORT_EMAIL . '?subject=KoaLA:%20Invalid%20participant%20management&body=' . rawurlencode("\nLink: " . get_current_URL() . "\nCreator: " . $creator->get_identifier() . "\n"); $content->setCurrentBlock('BLOCK_ACCESSMERGEL'); $content->setVariable('LABEL_ACCESSMERGEL', str_replace('%MAILTO', $mailto, gettext("There is a problem with the access settings. Please <a href=\"%MAILTO\">contact the support team</a> to fix it by setting the access rights again."))); $content->parse('BLOCK_ACCESSMERGEL'); } else { if (!empty($values['access'])) { $current_access = $values['access']; } else { if (isset($tutorial)) { $current_access = $tutorial->get_attribute(KOALA_ACCESS); } else { $current_access = PERMISSION_TUTORIAL_MATERIALS_COURSE; } } $access = koala_group_tutorial::get_workroom_access_descriptions(); foreach ($access as $key => $array) { if ($key == PERMISSION_UNDEFINED && $current_access != PERMISSION_UNDEFINED) { continue; } $content->setCurrentBlock('ACCESS'); $content->setVariable('LABEL', $array['summary_short'] . ': ' . $array['label']); $content->setVariable('VALUE', $key); if ($key == $current_access) { $content->setVariable('CHECK', "checked=\"checked\""); } $content->parse('ACCESS'); } } $content->parse('BLOCK_ACCESS'); if (isset($tutorial)) {