diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index 8ff2f310fa..dc34fafbe5 100755 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -395,7 +395,7 @@ class IndexManager ]; } - if (Skill::isAllowed(0, false)) { + if (Skill::isAllowed(api_get_user_id(), false)) { $items[] = [ 'icon' => Display::return_icon('skill-badges.png', get_lang('MySkills')), 'link' => api_get_path(WEB_CODE_PATH).'social/my_skills_report.php',