diff options
| author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-10-13 17:49:12 -0500 |
|---|---|---|
| committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-10-13 17:49:12 -0500 |
| commit | c60b15294a72d5a2be8e7d23fd1b4052ec944ec8 (patch) | |
| tree | e46f8636efa3ef915aebc04f9a3be87aa0158dc9 /phpBB/includes | |
| parent | 397d039ce5c7b61145b4ff8daa41e511a75122c6 (diff) | |
| download | forums-c60b15294a72d5a2be8e7d23fd1b4052ec944ec8.tar forums-c60b15294a72d5a2be8e7d23fd1b4052ec944ec8.tar.gz forums-c60b15294a72d5a2be8e7d23fd1b4052ec944ec8.tar.bz2 forums-c60b15294a72d5a2be8e7d23fd1b4052ec944ec8.tar.xz forums-c60b15294a72d5a2be8e7d23fd1b4052ec944ec8.zip | |
[ticket/11103] Global moderators with m_approve permission never need approval
They do not need to receive notifications if their post/topic is approved or
disapproved
PHPBB3-11103
Diffstat (limited to 'phpBB/includes')
| -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 |
