Setting Max Invites per day to zero doesn't work

I was looking for a way to disable invites when I was suggested by @watchmanmonitor at https://meta.discourse.org/t/disable-invites/21796/3?u=navjotjsingh to set max invites per day to zero. Well I tried that and I could still send invite using a member’s account that is at Trust level 2.

إعجاب واحد (1)

This was never intended to “work”, so it would be a feature request.

إعجاب واحد (1)

Oh okay. Then I would like Discourse to provide a simple way to disable the invite system.

إعجابَين (2)

What should it do at 0 then?

4 إعجابات

I just tried setting it to 0, and it limits to one invite per user.

https://github.com/discourse/discourse/commit/dd91d5b02f74bf0226a5d2b7502eb6f000f72dca

11 إعجابًا