From: Raphaël Barrois Date: Thu, 18 Mar 2010 17:08:02 +0000 (+0100) Subject: Force default visibility of profile X-Git-Tag: xorg/1.0.0~332^2~45 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d52b48a02c9c7b206b765da2bbe0d860c7d8488a;p=platal.git Force default visibility of profile Signed-off-by: Raphaël Barrois --- 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); } }