Fixed bug with permissions

SVN revision: 652
This commit is contained in:
Stefan Ritt 2004-01-07 14:05:14 +00:00
parent 37df6696da
commit dd1f467714

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.173 2004/01/07 14:05:14 midas
Fixed bug with permissions
Revision 1.172 2004/01/07 11:14:36 midas Revision 1.172 2004/01/07 11:14:36 midas
Only section of current logbook can be edited in elogd.cfg Only section of current logbook can be edited in elogd.cfg
@ -8415,8 +8418,10 @@ BOOL is_command_allowed(LOGBOOK * lbs, char *command)
} }
if (strstr(admin_user, getparam("unm")) != NULL) { if (strstr(admin_user, getparam("unm")) != NULL) {
strcat(menu_str, "Change elogd.cfg"); strcat(menu_str, "Change elogd.cfg, ");
strcat(menu_str, ", "); if (!getcfg("global", "Admin user", str)
|| strstr(str, getparam("unm")) != 0)
strcat(menu_str, "Change [global], ");
} }
} }