Force default visibility of profile
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Thu, 18 Mar 2010 17:08:02 +0000 (18:08 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 22 Mar 2010 12:49:28 +0000 (13:49 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
classes/profile.php

index a810870..f4c4244 100644 (file)
@@ -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);
         }
     }