Commit 04e3dab6 authored by Murray Cumming's avatar Murray Cumming
Browse files

Share on Network: Add reassuring message when user removal fails.

* glom/frame_glom.cc: Add a stdout message saying the the
default user has been disabled, because the existing message
about the failure to remove the user looks at first like
a security problem.
I still do not know why removal fails, even though we do
change the ownership of the database.
parent 722df758
2012-02-02 Murray Cumming <murrayc@murrayc.com>
Share on Network: Add reassuring message when user removal fails.
* glom/frame_glom.cc: Add a stdout message saying the the
default user has been disabled, because the existing message
about the failure to remove the user looks at first like
a security problem.
I still do not know why removal fails, even though we do
change the ownership of the database.
2012-02-02 Murray Cumming <murrayc@murrayc.com>
test_selfhosting_new_empty_then_users: Test user removal.
......
......@@ -904,6 +904,12 @@ void Frame_Glom::on_menu_file_toggle_share(const Glib::RefPtr<Gtk::ToggleAction>
//Try to revoke it instead.
//TODO: Discover how to make remove_user() succeed.
disabled = disable_user(default_user);
if(disabled)
{
//This message should be reassuring if the user sees a previous error
//about the default user not being removed.
std::cout << G_STRFUNC << ": The default user could not be removed, but it has been disabled." << std::endl;
}
}
if(!reowned || !(removed || disabled))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment