summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-22 11:03:56 -0500
committerEvan Prodromou <evan@status.net>2010-02-22 11:03:56 -0500
commit5a6967db6cbe0e864c8d542700008bba99a7b095 (patch)
tree77859a4c659e846a36190555366f592c5c60517c
parentf6ebe815382a61574df5f9452ee9a0ea4ae38f0c (diff)
clear the site owner when profile changes
-rw-r--r--actions/profilesettings.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php
index 0d6777879..161e35b11 100644
--- a/actions/profilesettings.php
+++ b/actions/profilesettings.php
@@ -285,6 +285,10 @@ class ProfilesettingsAction extends AccountSettingsAction
} else {
// Re-initialize language environment if it changed
common_init_language();
+ // Clear the site owner, in case nickname changed
+ if ($user->hasRole(Profile_role::OWNER)) {
+ User::blow('user:site_owner');
+ }
}
}