aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2011-08-23 14:49:22 +0200
committerJoas Schilling <nickvergessen@gmx.de>2011-08-23 14:49:50 +0200
commitefc443aac930823a6ad6065fa7c52bef1ed922db (patch)
tree7e4c4511aa735d1df19e610159e336f4536dc877 /phpBB/index.php
parentMerge remote-tracking branch 'callumacrae/ticket/9978' into develop-olympus (diff)
downloadphpbb-efc443aac930823a6ad6065fa7c52bef1ed922db.tar.gz
phpbb-efc443aac930823a6ad6065fa7c52bef1ed922db.tar.bz2
phpbb-efc443aac930823a6ad6065fa7c52bef1ed922db.zip
[ticket/10334] Require permissions to view the birthday-list on board index
PHPBB3-10334
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index 91cbd326b9..fe5a179705 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -81,7 +81,7 @@ $legend = implode(', ', $legend);
// Generate birthday list if required ...
$birthday_list = '';
-if ($config['load_birthdays'] && $config['allow_birthdays'])
+if ($config['load_birthdays'] && $config['allow_birthdays'] && $auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'))
{
$now = phpbb_gmgetdate(time() + $user->timezone + $user->dst);
$sql = 'SELECT u.user_id, u.username, u.user_colour, u.user_birthday