diff options
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/notification/type/report_pm.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/notification/type/report_pm.php b/phpBB/includes/notification/type/report_pm.php index db0ad6ac6e..3619c5510c 100644 --- a/phpBB/includes/notification/type/report_pm.php +++ b/phpBB/includes/notification/type/report_pm.php @@ -75,6 +75,17 @@ class phpbb_notification_type_report_pm extends phpbb_notification_type_pm } /** + * Is available + */ + public function is_available() + { + $m_approve = $this->auth->acl_getf($this->permission, true); + + return (!empty($m_approve)); + } + + + /** * Find the users who want to receive notifications * (copied from post_in_queue) * |
