Commit Graph

4 Commits (20fefdb7145b48449e9d6a824a9846dadfd6ac2f)

Author SHA1 Message Date
Eugen Rochko ca85658975
Add autofollow option to invites ()
* Add autofollow option to invites

* Trigger CodeClimate rebuild
Eugen Rochko 4d81809f36
Yeah, it was supposed to be #create?
Shuhei Kitagawa 50491e0d92 Add tests for invites controller ()
* Add tests for invites controller

* Small refactoring and fix for invites controller
Eugen Rochko 740f8a95a9
Add consumable invites ()
* Add consumable invites

* Add UI for generating invite codes

* Add tests

* Display max uses and expiration in invites table, delete invite

* Remove unused column and redundant validator

- Default follows not used, probably bad idea
- InviteCodeValidator is redundant because RegistrationsController
  checks invite code validity

* Add admin setting to disable invites

* Add admin UI for invites, configurable role for invite creation

- Admin UI that lists everyone's invites, always available
- Admin setting min_invite_role to control who can invite people
- Non-admin invite UI only visible if users are allowed to

* Do not remove invites from database, expire them instantly