mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
397d039ce5
commit
c60b15294a
2 changed files with 16 additions and 0 deletions
|
@ -57,6 +57,14 @@ class phpbb_notification_type_approve_post extends phpbb_notification_type_post
|
||||||
return 'approve_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
|
* Find the users who want to receive notifications
|
||||||
*
|
*
|
||||||
|
|
|
@ -57,6 +57,14 @@ class phpbb_notification_type_approve_topic extends phpbb_notification_type_topi
|
||||||
return 'approve_topic';
|
return 'approve_topic';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is available
|
||||||
|
*/
|
||||||
|
public function is_available()
|
||||||
|
{
|
||||||
|
return !$this->auth->acl_get('m_approve');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find the users who want to receive notifications
|
* Find the users who want to receive notifications
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue