diff options
author | Evan Prodromou <evan@status.net> | 2010-02-22 11:03:56 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-02-22 11:03:56 -0500 |
commit | 5a6967db6cbe0e864c8d542700008bba99a7b095 (patch) | |
tree | 77859a4c659e846a36190555366f592c5c60517c /actions | |
parent | f6ebe815382a61574df5f9452ee9a0ea4ae38f0c (diff) |
clear the site owner when profile changes
Diffstat (limited to 'actions')
-rw-r--r-- | actions/profilesettings.php | 4 |
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'); + } } } |