clear the site owner when profile changes

This commit is contained in:
Evan Prodromou 2010-02-22 11:03:56 -05:00
parent f6ebe81538
commit 5a6967db6c
1 changed files with 4 additions and 0 deletions

View File

@ -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');
}
}
}