online-judge icon indicating copy to clipboard operation
online-judge copied to clipboard

Perform access checks to historic versions based on latest version's data

Open kiritofeng opened this issue 2 years ago • 0 comments

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.

kiritofeng avatar Nov 21 '22 05:11 kiritofeng