forked from filipg/gonito
Fix bug with the button for re-evalation
It appeared in cases when it should not appear.
This commit is contained in:
parent
06d31dfb69
commit
48506a69fd
@ -61,8 +61,8 @@ canBeReevaluated submissionId = do
|
|||||||
return ((isOwner || isSuperuser)
|
return ((isOwner || isSuperuser)
|
||||||
&&
|
&&
|
||||||
((versionMajor submissionVer) == (versionMajor chalengeVer)
|
((versionMajor submissionVer) == (versionMajor chalengeVer)
|
||||||
|| (versionMinor submissionVer) == (versionMinor chalengeVer)
|
&& (versionMinor submissionVer) == (versionMinor chalengeVer)
|
||||||
|| (versionPatch submissionVer) < (versionPatch chalengeVer)))
|
&& (versionPatch submissionVer) < (versionPatch chalengeVer)))
|
||||||
|
|
||||||
|
|
||||||
Nothing -> return False
|
Nothing -> return False
|
||||||
|
Loading…
Reference in New Issue
Block a user