From: Florent Bruneau Date: Sun, 8 Mar 2009 18:48:45 +0000 (+0100) Subject: Set default value for visibility when not logged. X-Git-Tag: xorg/1.0.0~332^2~343 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f74fb084d80d48a507f3c847e36fc1014647d601;p=platal.git Set default value for visibility when not logged. Signed-off-by: Florent Bruneau --- diff --git a/classes/profile.php b/classes/profile.php index 11b08ed..6e68dc9 100644 --- a/classes/profile.php +++ b/classes/profile.php @@ -61,6 +61,9 @@ class Profile $this->data = $data; $this->pid = $this->data['pid']; $this->hrpid = $this->data['hrpid']; + if (!S::logged()) { + $this->setVisibilityLevel(self::VISIBILITY_PUBLIC); + } } public function id()