From 103311a859d2b6891046a95d08ffab5a7cbc555d Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 2 Aug 2007 10:56:59 +0000 Subject: [PATCH] Redirect New command to login screen (needed for MIDAS integration) SVN revision: 1896 --- src/elogd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/elogd.c b/src/elogd.c index 846ee32c..6c02ef3e 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -24454,6 +24454,12 @@ void interprete(char *lbook, char *path) /* check if command in menu list */ if (!is_command_allowed(lbs, command)) { + /* redirect to login page for new command */ + if (strieq(command, loc("New")) && !isparam("unm")) { + check_user_password(lbs, "", "", _cmdline); + return; + } + sprintf(str, loc("Error: Command \"%s\" not allowed"), command); show_error(str); return;