From b163bc88fb73c4e560dc6e265d19638abb2426d7 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 22 May 2015 05:18:35 +0200 Subject: [PATCH] Correct content now ... :-( Signed-off-by: Roland Haeder --- classes/Notice.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 16b56e299c..2cd441d3b8 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2863,11 +2863,8 @@ class Notice extends Managed_DataObject } public function isPrivateScope () { - return ( - ($this->is_local === Notice::LOCAL_NONPUBLIC) || - ($this->is_local === Notice::GATEWAY) || - ($this->is_local === Notice::REMOTE) - ); + return ($this->scope != Notice::SITE_SCOPE && + $this->scope != Notice::PUBLIC_SCOPE); } /** -- 2.39.5