aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-20 21:26:39 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-20 21:28:37 -0500
commitf62e55091aac6aa62c56dde172f2f2bb0371f7fd (patch)
tree45040fcbb0ce1ac3290d20b6837dfb7643ce95f2 /phpBB/includes
parentde7e17b7321feebbefb5249febbbfe173e275ada (diff)
downloadforums-f62e55091aac6aa62c56dde172f2f2bb0371f7fd.tar
forums-f62e55091aac6aa62c56dde172f2f2bb0371f7fd.tar.gz
forums-f62e55091aac6aa62c56dde172f2f2bb0371f7fd.tar.bz2
forums-f62e55091aac6aa62c56dde172f2f2bb0371f7fd.tar.xz
forums-f62e55091aac6aa62c56dde172f2f2bb0371f7fd.zip
[ticket/11103] PM notifications are not available if users cannot read them
PHPBB3-11103
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/notification/type/pm.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/notification/type/pm.php b/phpBB/includes/notification/type/pm.php
index adb03ab1a3..697feca962 100644
--- a/phpBB/includes/notification/type/pm.php
+++ b/phpBB/includes/notification/type/pm.php
@@ -34,6 +34,14 @@ class phpbb_notification_type_pm extends phpbb_notification_type_base
);
/**
+ * Is available
+ */
+ public function is_available()
+ {
+ return ($this->config['allow_privmsg'] && $this->auth->acl_get('u_readpm'));
+ }
+
+ /**
* Get the id of the
*
* @param array $pm The data from the private message