Skip to content
Snippets Groups Projects
Commit 4db84e23 authored by uhensler's avatar uhensler
Browse files

OO-4285: Show score in the structure course node only if user has role participant

parent e3a91589
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,7 @@ public class STCourseNodeRunController extends BasicController { ...@@ -177,7 +177,7 @@ public class STCourseNodeRunController extends BasicController {
// push title and learning objectives, only visible on intro page // push title and learning objectives, only visible on intro page
myContent.contextPut("menuTitle", stCourseNode.getShortTitle()); myContent.contextPut("menuTitle", stCourseNode.getShortTitle());
myContent.contextPut("displayTitle", stCourseNode.getLongTitle()); myContent.contextPut("displayTitle", stCourseNode.getLongTitle());
if(ureq.getUserSession().getRoles().isGuestOnly()) { if(ureq.getUserSession().getRoles().isGuestOnly() || !userCourseEnv.isParticipant()) {
myContent.contextPut("hasScore", Boolean.FALSE); myContent.contextPut("hasScore", Boolean.FALSE);
myContent.contextPut("hasPassed", Boolean.FALSE); myContent.contextPut("hasPassed", Boolean.FALSE);
} else { } else {
......
...@@ -41,12 +41,11 @@ ...@@ -41,12 +41,11 @@
</div> </div>
#end #end
</div> </div>
#if ($r.available("highScore"))
$r.render("highScore")
#end
#end #end
#if ($r.available("highScore"))
$r.render("highScore")
#end
#if ($children && $children.size() > 0) #if ($children && $children.size() > 0)
#set ($i = 0) #set ($i = 0)
......
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