From 6c10fa52510a792f08a31a60f50c579f4f9a0faa Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 16 Sep 2002 06:45:22 +0000 Subject: [PATCH] Fixed problem with saving other user as admin SVN revision: 242 --- elogd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/elogd.c b/elogd.c index aa555274..51133059 100755 --- a/elogd.c +++ b/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 2.77 2002/09/16 06:45:22 midas + Fixed problem with saving other user as admin + Revision 2.76 2002/09/16 06:22:45 midas Various fixed and enhancement @@ -1317,6 +1320,8 @@ static char old_language[256]; return orig; } + printf("Language error: string \"%s\" not found in \"%s\'\n", orig, file_name); + return orig; } @@ -9529,7 +9534,7 @@ LOGBOOK *cur_lb; show_new_user_page(cur_lb); return; } - if (equal_ustring(command, loc("Save")) && isparam("new_user_name")) + if (equal_ustring(command, loc("Save")) && isparam("new_user_name") && !isparam("config")) { if (!save_user_config(cur_lb, getparam("new_user_name"), TRUE, FALSE)) return;