anchor.diff:  		
   		learningActivityType = learningActivityTypeRegistry.getLearningActivityType(activity.getTypeId());
   		if (permissionChecker.hasPermission(activity.getGroupId(),LearningActivity.class.getName(),	activity.getActId(), ActionKeys.VIEW)){
  -
   			if( (Validator.isNotNull(learningActivityType))&&
   				(accessLock || hasPermissionAccessCourseFinished || (!courseLocked && !activity.isLocked(themeDisplay.getUser(), themeDisplay.getPermissionChecker()))  
   					||(permissionChecker.hasPermission(activity.getGroupId(), LearningActivity.class.getName(), activity.getActId(), ActionKeys.UPDATE) && actionEditing))){%>
  
positive.code: 		activities = LearningActivityServiceUtil.getLearningActivitiesOfModule(moduleId);
  	}
  }
  
  String activityEnd = "desactivado";
  
  if ((actionEditing && hasPermissionAddLact) ||
  		(moduleId==0 
  		&& permissionChecker.hasPermission(themeDisplay.getScopeGroupId(), "com.liferay.lms.learningactivitymodel", themeDisplay.getScopeGroupId(), "ADD_ACTIVITY"))) {
  	
  	PortletURL urlCreateActivity = LmsActivitiesList.getURLCreateActivity(liferayPortletRequest, liferayPortletResponse, currentModule);
  
  	if(Validator.isNotNull(urlCreateActivity)){
  		
  		%>
  
negative.code: 
  <% 
  List<LearningActivity> activities = null;
  if (moduleId == 0) {
  	activities = LearningActivityServiceUtil.getLearningActivitiesOfGroup(scopeGroupId);
  } else {
  