mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Hide all ncenterlite menus if member menu is disabled
This commit is contained in:
parent
1e151b0aeb
commit
d8673396f1
1 changed files with 7 additions and 13 deletions
|
|
@ -1148,26 +1148,20 @@ class ncenterliteController extends ncenterlite
|
|||
|
||||
$config = NcenterliteModel::getConfig();
|
||||
|
||||
if($config->user_config_list == 'Y')
|
||||
if($config->user_config_list == 'Y' && Context::get('is_logged'))
|
||||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
if(!Context::get('is_logged'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
$target_srl = Context::get('target_srl');
|
||||
|
||||
$oMemberController->addMemberMenu('dispNcenterliteNotifyList', 'ncenterlite_my_list');
|
||||
|
||||
if($config->user_notify_setting == 'Y')
|
||||
{
|
||||
$oMemberController->addMemberMenu('dispNcenterliteUserConfig', 'ncenterlite_my_settings');
|
||||
}
|
||||
|
||||
if($config->unsubscribe == 'Y')
|
||||
{
|
||||
$oMemberController->addMemberMenu('dispNcenterliteUnsubscribeList', 'unsubscribe_list');
|
||||
}
|
||||
}
|
||||
|
||||
if($config->user_notify_setting == 'Y')
|
||||
{
|
||||
$oMemberController->addMemberMenu('dispNcenterliteUserConfig', 'ncenterlite_my_settings');
|
||||
}
|
||||
}
|
||||
|
||||
function _addFile()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue