online-judge
online-judge copied to clipboard
Perform access checks to historic versions based on latest version's data
Currently if a user can only edit public problems and they try to revert to a revision where the problem was not public, the site throws a 500 error.
We should perform the access checked based on their ability to access the current version of the problem and handle any potential remaining 500 errors. Additionally, we should ban anyone who thinks spamming the 500 errors mentioned in this bug report is a good idea.