From 3bdb80a182b0fca7840d097be628a29a56e0c542 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 15e50acbe0..83d5d5fd57 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2667,11 +2667,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