add back check
authorJeremy Tan <[email protected]>
Sat, 19 Oct 2013 07:49:08 +0000 (15:49 +0800)
committerJeremy Tan <[email protected]>
Sat, 19 Oct 2013 07:49:08 +0000 (15:49 +0800)
server/control.c

index 59f9b73..4342c8c 100644 (file)
@@ -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.");

UCC git Repository :: git.ucc.asn.au