diff options
| -rw-r--r-- | phpBB/includes/notification/type/approve_post.php | 8 | ||||
| -rw-r--r-- | phpBB/includes/notification/type/approve_topic.php | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/phpBB/includes/notification/type/approve_post.php b/phpBB/includes/notification/type/approve_post.php index 9275ec2f6d..dbd2e4417f 100644 --- a/phpBB/includes/notification/type/approve_post.php +++ b/phpBB/includes/notification/type/approve_post.php @@ -58,6 +58,14 @@ class phpbb_notification_type_approve_post extends phpbb_notification_type_post } /** + * Is available + */ + public function is_available() + { + return !$this->auth->acl_get('m_approve'); + } + + /** * Find the users who want to receive notifications * * @param array $post Data from diff --git a/phpBB/includes/notification/type/approve_topic.php b/phpBB/includes/notification/type/approve_topic.php index 325ccd0eab..3608bfba85 100644 --- a/phpBB/includes/notification/type/approve_topic.php +++ b/phpBB/includes/notification/type/approve_topic.php @@ -58,6 +58,14 @@ class phpbb_notification_type_approve_topic extends phpbb_notification_type_topi } /** + * Is available + */ + public function is_available() + { + return !$this->auth->acl_get('m_approve'); + } + + /** * Find the users who want to receive notifications * * @param array $post Data from |
