freedit-org / freedit

The safest and lightest forum, powered by rust.
https://freedit.eu
MIT License
202 stars 22 forks source link

Can't edit existing inns once inn_mod_max limit is reached #85

Closed dominikdalek closed 1 year ago

dominikdalek commented 1 year ago

It seems that user who's already managing inn_mod_max inns can't edit any of the existing ones. I suspect that the problem is in mod_inn - condition mod_counts >= site_config.inn_mod_max should use > if iid != 0 or check should be dropped altogether.