projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00ba8a7
)
As 'yourself' does not appear when the editor is not the the profile owner, do not...
author
Stéphane Jacob
<sj@m4x.org>
Sat, 20 Nov 2010 14:13:44 +0000
(15:13 +0100)
committer
Stéphane Jacob
<sj@m4x.org>
Sat, 20 Nov 2010 14:13:44 +0000
(15:13 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/general.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/profile/general.inc.php
b/modules/profile/general.inc.php
index
9684412
..
900c1c8
100644
(file)
--- a/
modules/profile/general.inc.php
+++ b/
modules/profile/general.inc.php
@@
-636,7
+636,7
@@
class ProfilePageGeneral extends ProfilePage
WHERE pid = {?}",
$this->values['photo_pub'], $this->pid());
}
- if ($this->changed['yourself']) {
+ if (
S::user()->isMe($this->owner) &&
$this->changed['yourself']) {
if ($this->owner) {
XDB::execute('UPDATE accounts
SET display_name = {?}