mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
parent
c1d6554630
commit
e3258ae7cb
22
src/elogd.c
22
src/elogd.c
@ -8725,16 +8725,18 @@ BOOL is_author(LOGBOOK * lbs, char attrib[MAX_N_ATTR][NAME_LENGTH], char *owner)
|
|||||||
|
|
||||||
if (i == lbs->n_attr) {
|
if (i == lbs->n_attr) {
|
||||||
/* if not found, search attribute which contains full_name of author */
|
/* if not found, search attribute which contains full_name of author */
|
||||||
get_full_name(lbs, getparam("unm"), full_name);
|
if (isparam("unm")) {
|
||||||
for (i = 0; i < lbs->n_attr; i++) {
|
get_full_name(lbs, getparam("unm"), full_name);
|
||||||
sprintf(str, "Preset %s", attr_list[i]);
|
for (i = 0; i < lbs->n_attr; i++) {
|
||||||
if (getcfg(lbs->name, str, preset, sizeof(preset))) {
|
sprintf(str, "Preset %s", attr_list[i]);
|
||||||
if (strstr(preset, "$long_name")) {
|
if (getcfg(lbs->name, str, preset, sizeof(preset))) {
|
||||||
if (strstr(attrib[i], full_name) == NULL) {
|
if (strstr(preset, "$long_name")) {
|
||||||
strcpy(owner, attrib[i]);
|
if (strstr(attrib[i], full_name) == NULL) {
|
||||||
return FALSE;
|
strcpy(owner, attrib[i]);
|
||||||
} else
|
return FALSE;
|
||||||
break;
|
} else
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user