tosdr / edit.tosdr.org

👍👎 A new web app to rate services
https://edit.tosdr.org
GNU Affero General Public License v3.0
211 stars 37 forks source link

Disable Rackattack for curators and staff #1119

Open JustinBack opened 1 year ago

JustinBack commented 1 year ago

Oops! It looks like you're doing many different things in a short period of time. We check for this to prevent abusive requests or other types of vandalism to our site. Please try again in 10 minutes

should not apply to curators or staff

JustinBack commented 1 year ago

Is the user class exposed in https://github.com/tosdr/edit.tosdr.org/blob/6bc77f1d78420dc88bd157346d24539668215781/config/initializers/rack_attack.rb#L119?

madoleary commented 11 months ago

For the moment, I've just raised the limits. We can't access the user class inside of Rack-Attack. Leaving this open, though.