diff --git a/main/lp/lp_list.php b/main/lp/lp_list.php index f476758548..ec22311a36 100755 --- a/main/lp/lp_list.php +++ b/main/lp/lp_list.php @@ -84,10 +84,14 @@ if ($is_allowed_to_edit) { } } $actionLeft = null; - $actionLeft .= Display::url( - Display::return_icon('new_folder.png', get_lang('AddCategory'), array(), ICON_SIZE_MEDIUM), - api_get_self().'?'.api_get_cidreq().'&action=add_lp_category' - ); + + if (!$current_session) { + $actionLeft .= Display::url( + Display::return_icon('new_folder.png', get_lang('AddCategory'), array(), ICON_SIZE_MEDIUM), + api_get_self().'?'.api_get_cidreq().'&action=add_lp_category' + ); + } + $actionLeft .= Display::url( Display::return_icon('new_learnpath.png', get_lang('LearnpathAddLearnpath'), '', ICON_SIZE_MEDIUM), api_get_self().'?'.api_get_cidreq().'&action=add_lp' diff --git a/main/template/default/learnpath/list.tpl b/main/template/default/learnpath/list.tpl index 809589d643..7c87a60cb6 100644 --- a/main/template/default/learnpath/list.tpl +++ b/main/template/default/learnpath/list.tpl @@ -16,7 +16,7 @@