user-accounts: prevent the only admin from being deleted or disabled

https://bugzilla.gnome.org/show_bug.cgi?id=690246
This commit is contained in:
Thomas Wood 2013-06-04 16:53:22 +01:00
parent 0adf7c2073
commit 3af1b72691
4 changed files with 46 additions and 40 deletions

View file

@ -81,6 +81,8 @@ GdkPixbuf * render_user_icon (ActUser *user,
void set_user_icon_data (ActUser *user,
GdkPixbuf *pixbuf);
gboolean would_demote_only_admin (ActUser *user);
G_END_DECLS
#endif