Commit f82a0daf authored by jlopez's avatar jlopez
Browse files

Fix bugs

parent 14cadaeb
......@@ -112,7 +112,7 @@ if($action == "create") {
$down = FALSE;
if(($cnt->author == $author) || ($cnt->visibility == 1)) {
$down = TRUE;
} else if($db->getGradeWithLogin($_SESSION['username'])->name != $db->getMaxGrades()->name) {
} else if($db->getGradeWithLogin($_SESSION['username'])->name == $db->getMaxGrades()->name) {
$down = TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment