diff options
| author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-10-13 17:06:01 -0500 |
|---|---|---|
| committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-10-13 17:06:01 -0500 |
| commit | 4392054044d3bf63481098cca9e27e17ae306fa0 (patch) | |
| tree | 55393ef8014fde941d836ff39a7cbe03e9005786 | |
| parent | 94a3dc5ff7292c8271dfcff9408aa89d401b72ac (diff) | |
| download | forums-4392054044d3bf63481098cca9e27e17ae306fa0.tar forums-4392054044d3bf63481098cca9e27e17ae306fa0.tar.gz forums-4392054044d3bf63481098cca9e27e17ae306fa0.tar.bz2 forums-4392054044d3bf63481098cca9e27e17ae306fa0.tar.xz forums-4392054044d3bf63481098cca9e27e17ae306fa0.zip | |
[ticket/11103] Reported pm notifications require m_report permissions
PHPBB3-11103
| -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) * |
