From d52b48a02c9c7b206b765da2bbe0d860c7d8488a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Thu, 18 Mar 2010 18:08:02 +0100 Subject: [PATCH] Force default visibility of profile MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- classes/profile.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/profile.php b/classes/profile.php index a810870..f4c4244 100644 --- a/classes/profile.php +++ b/classes/profile.php @@ -106,6 +106,8 @@ class Profile $this->hrpid = $this->data['hrpid']; if (!S::logged()) { $this->setVisibilityLevel(self::VISIBILITY_PUBLIC); + } else { + $this->setVisibilityLevel(self::VISIBILITY_PRIVATE); } } -- 2.1.4