Skip to content
Snippets Groups Projects
Commit 12656ed8 authored by srosse's avatar srosse
Browse files

OO-52: block access to help course for invitee

parent bfeefef1
No related branches found
No related tags found
No related merge requests found
......@@ -99,10 +99,13 @@ public class OlatTopNavController extends BasicController implements GenericEven
}
//
// the help link
helpLink = LinkFactory.createLink("topnav.help", topNavVC, this);
helpLink.setCustomEnabledLinkCSS("b_with_small_icon_right o_help_icon");
helpLink.setTooltip("topnav.help.alt", false);
helpLink.setTarget("_help");
if(!isInvitee) {
helpLink = LinkFactory.createLink("topnav.help", topNavVC, this);
helpLink.setCustomEnabledLinkCSS("b_with_small_icon_right o_help_icon");
helpLink.setTooltip("topnav.help.alt", false);
helpLink.setTarget("_help");
}
// login link
if (ureq.getIdentity() == null) {
topNavVC.contextPut("isGuest", Boolean.TRUE);
......
......@@ -22,11 +22,11 @@
<li id="o_topnav_printview">
<a href="javascript:b_doPrint();" title="$r.translateInAttribute("topnav.printview.alt")" >$r.translate("topnav.printview")</a>
</li>
#if ($r.available("topnav.help"))
<li id="o_topnav_help">
$r.render("topnav.help")
</li>
#end
#if (!$isGuest)
<li id="o_topnav_logout">
## make logout link very basic without onClick handler in case javaScript is broken it is still possible to log out
......
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