Examples of allowPageEditing()


Examples of org.olat.core.commons.modules.singlepage.SinglePageController.allowPageEditing()

      // check if user is allowed to edit the page in the run view
      CourseGroupManager cgm = userCourseEnv.getCourseEnvironment().getCourseGroupManager();
      boolean hasEditRights = (cgm.isIdentityCourseAdministrator(ureq.getIdentity()) || cgm.hasRight(ureq.getIdentity(),
          CourseRights.RIGHT_COURSEEDITOR));
      if (hasEditRights) {
        spCtr.allowPageEditing();
        // set the link tree model to internal for the HTML editor
        CustomLinkTreeModel linkTreeModel = new CourseInternalLinkTreeModel(userCourseEnv.getCourseEnvironment().getRunStructure().getRootNode());
        spCtr.setInternalLinkTreeModel(linkTreeModel);
      }
      spCtr.addLoggingResourceable(LoggingResourceable.wrap(this));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.