As 'yourself' is not modified when the editor is not the the profile owner, do not...
authorStéphane Jacob <sj@m4x.org>
Sat, 20 Nov 2010 14:26:58 +0000 (15:26 +0100)
committerStéphane Jacob <sj@m4x.org>
Sat, 20 Nov 2010 14:26:58 +0000 (15:26 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/general.inc.php

index cd3b394..bc8582d 100644 (file)
@@ -545,11 +545,12 @@ class ProfilePageGeneral extends ProfilePage
         if (!S::user()->isMe($this->owner)) {
             $this->settings['deathdate'] = new ProfileSettingDate(true);
         }
+        if (S::user()->isMe($this->owner)) {
+            $this->settings['yourself'] = null;
+        }
         if (S::user()->checkPerms('directory_private')
             || S::user()->isMyProfile($this->owner)) {
-            $this->settings['yourself']
-                                      = $this->settings['freetext']
-                                      = null;
+            $this->settings['freetext'] = null;
             $this->settings['freetext_pub']
                                       = $this->settings['photo_pub']
                                       = new ProfileSettingPub();