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

[ticket/11103] Notifications for subscriptions/bookmarks must obey ACP options

If bookmarks/subscriptions are disabled, they should not be listed in the UCP

PHPBB3-11103
This commit is contained in:
Nathan Guse 2012-10-20 21:22:06 -05:00
parent 94d682f774
commit de7e17b732
4 changed files with 32 additions and 0 deletions

View File

@ -41,6 +41,14 @@ class phpbb_notification_type_bookmark extends phpbb_notification_type_post
'group' => 'NOTIFICATION_GROUP_POSTING',
);
/**
* Is available
*/
public function is_available()
{
return $this->config['allow_bookmarks'];
}
/**
* Find the users who want to receive notifications
*

View File

@ -41,6 +41,14 @@ class phpbb_notification_type_post extends phpbb_notification_type_base
'group' => 'NOTIFICATION_GROUP_POSTING',
);
/**
* Is available
*/
public function is_available()
{
return $this->config['allow_topic_notify'];
}
/**
* Get the id of the item
*

View File

@ -48,6 +48,14 @@ class phpbb_notification_type_quote extends phpbb_notification_type_post
'group' => 'NOTIFICATION_GROUP_POSTING',
);
/**
* Is available
*/
public function is_available()
{
return true;
}
/**
* Find the users who want to receive notifications
*

View File

@ -41,6 +41,14 @@ class phpbb_notification_type_topic extends phpbb_notification_type_base
'group' => 'NOTIFICATION_GROUP_POSTING',
);
/**
* Is available
*/
public function is_available()
{
return $this->config['allow_forum_notify'];
}
/**
* Get the id of the item
*