mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 22:58:10 +01:00
[ticket/15267] Hide birthday list if permission wasn't granted
PHPBB3-15267
This commit is contained in:
parent
954af4f180
commit
77e7a27c11
@ -123,8 +123,10 @@ $db->sql_freeresult($result);
|
||||
$legend = implode($user->lang['COMMA_SEPARATOR'], $legend);
|
||||
|
||||
// Generate birthday list if required ...
|
||||
$show_birthdays = ($config['load_birthdays'] && $config['allow_birthdays'] && $auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'));
|
||||
|
||||
$birthdays = $birthday_list = array();
|
||||
if ($config['load_birthdays'] && $config['allow_birthdays'] && $auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'))
|
||||
if ($show_birthdays)
|
||||
{
|
||||
$time = $user->create_datetime();
|
||||
$now = phpbb_gmgetdate($time->getTimestamp() + $time->getOffset());
|
||||
@ -215,7 +217,7 @@ $template->assign_vars(array(
|
||||
|
||||
'S_LOGIN_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
|
||||
'U_SEND_PASSWORD' => ($config['email_enable']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=sendpassword') : '',
|
||||
'S_DISPLAY_BIRTHDAY_LIST' => ($config['load_birthdays']) ? true : false,
|
||||
'S_DISPLAY_BIRTHDAY_LIST' => $show_birthdays,
|
||||
'S_INDEX' => true,
|
||||
|
||||
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums&mark_time=' . time()) : '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user