From 017eee8e5d7fb4c976032f6e1b14947254fc073e 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 e155ccfcc0..7b9cfd9e5b 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2666,6 +2666,14 @@ class Notice extends Managed_DataObject ($this->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