mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Redirect New command to login screen (needed for MIDAS integration)
SVN revision: 1896
This commit is contained in:
parent
15f4022da3
commit
103311a859
@ -24454,6 +24454,12 @@ void interprete(char *lbook, char *path)
|
|||||||
|
|
||||||
/* check if command in menu list */
|
/* check if command in menu list */
|
||||||
if (!is_command_allowed(lbs, command)) {
|
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 \"<b>%s</b>\" not allowed"), command);
|
sprintf(str, loc("Error: Command \"<b>%s</b>\" not allowed"), command);
|
||||||
show_error(str);
|
show_error(str);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user