1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-29 02:29:21 +02:00

[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
This commit is contained in:
Nathaniel Guse 2012-10-13 17:49:12 -05:00
parent 397d039ce5
commit c60b15294a
2 changed files with 16 additions and 0 deletions

View File

@ -57,6 +57,14 @@ class phpbb_notification_type_approve_post extends phpbb_notification_type_post
return 'approve_post';
}
/**
* Is available
*/
public function is_available()
{
return !$this->auth->acl_get('m_approve');
}
/**
* Find the users who want to receive notifications
*

View File

@ -57,6 +57,14 @@ class phpbb_notification_type_approve_topic extends phpbb_notification_type_topi
return 'approve_topic';
}
/**
* Is available
*/
public function is_available()
{
return !$this->auth->acl_get('m_approve');
}
/**
* Find the users who want to receive notifications
*