First time I've got the following message on SO:
Too many of your edits were rejected, try again in 7 days.
Although, I have made ~50 accepted edits this day.
I'm sure that should outweigh the ~5 rejected edits, right?
My suggestion:
bool allowEdit(USER u)
{
if(u.rejected * 5 > u.accepted)
return(false);
else
return(true);
}
Think of it this way: if I do a 1000 accepted edits, and mess up on 5 [rejected], does that mean I should get banned for 7 days?
Hmmm... There seems to be a bug; the message only appears when clicking edit from review.
But otherwise, I can't edit this question, even when going to it from the homepage.
return (u.AcceptedEdits > u.RejectedEdits * 5);
That way you don't have that nastyreturn true
orreturn false
for a boolean function.