mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Check for "Admin restrict edit time" also for multiple entries delete operation (via select)
This commit is contained in:
parent
807666943a
commit
d9c47af710
18
src/elogd.c
18
src/elogd.c
@ -14325,8 +14325,22 @@ void show_elog_delete(LOGBOOK *lbs, int message_id) {
|
|||||||
char attrib[MAX_N_ATTR][NAME_LENGTH], mode[80];
|
char attrib[MAX_N_ATTR][NAME_LENGTH], mode[80];
|
||||||
|
|
||||||
/* check for editing interval */
|
/* check for editing interval */
|
||||||
if (!(check_edit_time(lbs, message_id)))
|
if (isparam("nsel")) {
|
||||||
return;
|
for (i = 0; i < atoi(getparam("nsel")); i++) {
|
||||||
|
sprintf(str, "s%d", i);
|
||||||
|
if (isparam(str)) {
|
||||||
|
status = check_edit_time(lbs, atoi(getparam(str)));
|
||||||
|
if (!status) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (message_id) {
|
||||||
|
status = check_edit_time(lbs, message_id);
|
||||||
|
if (!status) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* redirect if confirm = NO */
|
/* redirect if confirm = NO */
|
||||||
if (isparam("confirm") && strcmp(getparam("confirm"), loc("No")) == 0) {
|
if (isparam("confirm") && strcmp(getparam("confirm"), loc("No")) == 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user