git.ucc.asn.au
/
matches
/
MCTX3420.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b98dd1
)
add back check
author
Jeremy Tan
<
[email protected]
>
Sat, 19 Oct 2013 07:49:08 +0000
(15:49 +0800)
committer
Jeremy Tan
<
[email protected]
>
Sat, 19 Oct 2013 07:49:08 +0000
(15:49 +0800)
server/control.c
patch
|
blob
|
history
diff --git
a/server/control.c
b/server/control.c
index
59f9b73
..
4342c8c
100644
(file)
--- 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.");
UCC
git Repository :: git.ucc.asn.au