/impl/src/java/pt/estgp/estgweb/web/DirWebProxy.java |
---|
183,7 → 183,8 |
} |
catch (FileNotFoundException e) |
{ |
logger.warn("url not found for server:" + server + " and path:" + path); |
logger.warn("url not found for server:" + server + " and path:" + path + " " + "REMOTE USER" + request.getRemoteUser() + " " + request.getRequestURL()); |
response.sendError(404); |
} |
catch (Exception e) |
318,7 → 319,7 |
Element nextGoDeepElement = null; |
String d = pathFragments[i]; |
startPathAux = startPathAux + "/" + d; |
if(!client.changeWorkingDirectory(startPathAux)) |
if(!client.changeWorkingDirectory(startPathAux)) |
{ |
throw new NotAuthorizedException(); |
} |
/impl/src/web/user/courseunits/courseunit.jsp |
---|
59,6 → 59,7 |
</html:select> |
</p> |
</baco:canManage> |
<baco:isAuthenticated> |
<h2><bean:message key="courseunit.programfilepath"/></h2> |
<p> |
<baco:canManage name="CourseUnitView"> |
73,6 → 74,7 |
</logic:present> |
</baco:canManage> |
<baco:cantManage name="CourseUnitView"> |
<logic:present name="CourseUnitView" property="programStreamId"> |
<logic:equal value="true" name="CourseUnitView" property="validProgram"> |
86,6 → 88,7 |
</logic:notPresent> |
</p> |
</baco:isAuthenticated> |
<baco:canManage name="CourseUnitView"> |
<input type="button" onclick="set(form,'update');form.submit()" value="<bean:message key="confirm"/>"> |
/impl/src/web/user/courseunits/menu.jsp |
---|
70,21 → 70,27 |
<a href="<%=request.getContextPath()%>/"><bean:message key="courseunit.menu.put.question"/></a> |
</li>--> |
</baco:hasRole> |
<baco:isAuthenticated> |
<baco:isTeacherOfCourseUnit courseUnitId="${CourseUnitView.id}"> |
<li> |
<a href="<%=request.getContextPath()%>${user}/startLoadCourseUnitWorks${fromAction}.do?courseUnitView.id=${CourseUnitView.id}"><bean:message key="courseunit.menu.assignements"/></a> |
</li> |
</baco:isTeacherOfCourseUnit> |
</baco:isAuthenticated> |
<baco:isAuthenticated> |
<li> |
<html:link action="${user}/startCourseUnitBlog${fromAction}?courseUnitView.id=${CourseUnitView.id}"><bean:message key="courseunit.menu.blog"/></html:link> |
</li> |
</baco:isAuthenticated> |
<li> |
<html:link action="${user}/startLoadCourseUnitStudents${fromAction}?courseUnitView.id=${CourseUnitView.id}"><bean:message key="courseunit.students"/></html:link> |
</li> |
<baco:isAuthenticated> |
<% |
UserSession userSession = UserSessionProxy.loadUserSessionFromRequest(request); |
CourseUnitContentsGrants contentsGrants = CourseUnitContentsGrants.parse(CourseUnitView.getContentsGrants()); |
111,6 → 117,7 |
<% |
} |
%> |
</baco:isAuthenticated> |
</ul> |
</div> |
</div> |