From f7190088e0b1e7ea9bd93a0364f5688d14a65189 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 15 Oct 2010 14:34:05 +0200 Subject: [PATCH] Only allows deathdate changes if it is made by another user. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/general.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- 2.1.4