mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Allow "Submit" if "Edit" is in menu list
SVN revision: 2221
This commit is contained in:
parent
c4c8eb9da9
commit
8f429e24ee
@ -17876,7 +17876,7 @@ BOOL is_command_allowed(LOGBOOK * lbs, char *command)
|
||||
strlcat(other_str, "Cancel, First, Last, Previous, Next, Requested, Forgot, ", sizeof(other_str));
|
||||
|
||||
/* only allow Submit & Co if "New" is allowed */
|
||||
if (stristr(menu_str, "New"))
|
||||
if (stristr(menu_str, "New,") || stristr(menu_str, "Edit"))
|
||||
strlcat(other_str, "Update, Upload, Submit, Save, ", sizeof(other_str));
|
||||
|
||||
/* add save for new user registration */
|
||||
@ -17895,7 +17895,7 @@ BOOL is_command_allowed(LOGBOOK * lbs, char *command)
|
||||
return TRUE;
|
||||
}
|
||||
/* exclude non-localized submit for elog */
|
||||
else if (command[0] && strieq(command, "Submit") && stristr(menu_str, "New")) {
|
||||
else if (command[0] && strieq(command, "Submit") && (stristr(menu_str, "New,") || stristr(menu_str, "Edit"))) {
|
||||
return TRUE;
|
||||
}
|
||||
/* exclude other non-localized commands */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user