Skip to content

Commit 69c6e08

Browse files
committed
Skill: Minor: fix skill block to be visible only if user is logged and is not an anonymous user - refs BT#22929
1 parent ba58b26 commit 69c6e08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@
195195
$controller->tpl->assign('notice_block', $controller->return_notice());
196196
$controller->tpl->assign('help_block', $controller->return_help());
197197
$controller->tpl->assign('student_publication_block', $controller->studentPublicationBlock());
198-
$controller->tpl->assign('skills_block', $controller->returnSkillLinks());
198+
if (!api_is_anonymous() && !api_user_is_login()) {
199+
$controller->tpl->assign('skills_block', $controller->returnSkillLinks());
200+
}
199201

200202
if (api_is_anonymous()) {
201203
$controller->tpl->setLoginBodyClass();

0 commit comments

Comments
 (0)