From: Stéphane Jacob Date: Fri, 15 Oct 2010 12:34:05 +0000 (+0200) Subject: Only allows deathdate changes if it is made by another user. X-Git-Tag: xorg/1.0.1~42 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f7190088e0b1e7ea9bd93a0364f5688d14a65189;p=platal.git Only allows deathdate changes if it is made by another user. Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index 66d94b3..9684412 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -661,7 +661,7 @@ class ProfilePageGeneral extends ProfilePage } } } - if ($this->changed['deathdate']) { + if (!S::user()->isMe($this->owner) && $this->changed['deathdate']) { XDB::execute('UPDATE profiles SET deathdate = {?}, deathdate_rec = NOW() WHERE pid = {?} AND deathdate_rec IS NULL',