From bd18726f4d3405354966e50e9e3b1da7c25f491e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 6 May 2015 09:45:16 +0200 Subject: [PATCH] Added missing isPrivateScope(). Signed-off-by: Roland Haeder --- classes/Notice.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/classes/Notice.php b/classes/Notice.php index 19ddf6533d..533d4c100c 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2862,6 +2862,14 @@ class Notice extends Managed_DataObject return !($is_local === Notice::LOCAL_NONPUBLIC || $is_local === Notice::GATEWAY); } + public function isPrivateScope () { + return ( + ($this->is_local === Notice::LOCAL_NONPUBLIC) || + ($this->is_local === Notice::GATEWAY) || + ($this->is_local === Notice::REMOTE) + ); + } + /** * Check that the given profile is allowed to read, respond to, or otherwise * act on this notice. -- 2.39.5