aboutsummaryrefslogtreecommitdiff
path: root/src/flog.php
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2013-09-02 16:17:26 +0000
committercassiopc <cassiopc@gmail.com>2013-09-02 16:17:26 +0000
commit158eefabd93d51a7bd95b7651743182d817ee00a (patch)
tree1f9bb147af63787e062ba952822a839946f187ed /src/flog.php
parent056b014febb3fade0a685e119041f6b7a809328b (diff)
downloadboca-158eefabd93d51a7bd95b7651743182d817ee00a.tar.gz
boca-158eefabd93d51a7bd95b7651743182d817ee00a.zip
bug fixes to score sync
Diffstat (limited to 'src/flog.php')
-rw-r--r--src/flog.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flog.php b/src/flog.php
index e52e167..5eea441 100644
--- a/src/flog.php
+++ b/src/flog.php
@@ -141,7 +141,7 @@ function DBLogInContest($name,$pass,$contest,$msg=true) {
unset($_SESSION["usertable"]);
return false;
}
- if ($d["sitepermitlogins"]=="f" && $a["usertype"] != "admin" && $a["usertype"] != "judge") {
+ if ($d["sitepermitlogins"]=="f" && $a["usertype"] != "admin" && $a["usertype"] != "judge" && $a["usertype"] != "site") {
LOGLevel("User $name tried to login contest $contest but logins are denied.",2);
if($msg) MSGError("Logins are not allowed.");
unset($_SESSION["usertable"]);