aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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