From: Jeremy Tan Date: Sat, 19 Oct 2013 07:49:08 +0000 (+0800) Subject: add back check X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=486cec839029052716fc88ad64b41e074d0ee1ab;p=matches%2FMCTX3420.git add back check --- diff --git a/server/control.c b/server/control.c index 59f9b73..4342c8c 100644 --- a/server/control.c +++ b/server/control.c @@ -134,7 +134,7 @@ void Control_Handler(FCGIContext *context, char *params) { return; } - if (strcmp(g_controls.user_name, context->user_name) != 0) + if ((*g_controls.user_name) != '\0' && strcmp(g_controls.user_name, context->user_name) != 0) { if (context->user_type != USER_ADMIN) { FCGI_RejectJSON(context, "Another user has an experiment in progress.");