Skip to content
Snippets Groups Projects
Commit 6fa3171f authored by User expired's avatar User expired
Browse files

openolat#231: show the convert to learning path course option only to admins for now

parent e22aef50
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,8 @@ public class NodeAccessSettingsController extends FormBasicController {
FormLayoutContainer migrationCont = FormLayoutContainer.createButtonLayout("migrationButtons", getTranslator());
formLayout.add(migrationCont);
migrateLink = uifactory.addFormLink("settings.convert", migrationCont, Link.BUTTON);
// @UIBK: currently we only show the convert button to admins
migrateLink.setVisible(ureq.getUserSession().getRoles().isAdministrator());
}
if (LearningPathNodeAccessProvider.TYPE.equals(courseConfig.getNodeAccessType().getType())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment