Commit Graph

3 Commits (b4d598b554befe9bb38feca248b4464e0ef693e1)

Author SHA1 Message Date
Eugen Rochko 834df855e2 Add admin function to deactivate all invites ()
Fix 
2018-08-19 00:58:53 +02:00
Yamagishi Kazutoshi 53145abfbf Allow admin to deactivate invite created by users () 2017-12-01 12:26:19 +01:00
Eugen Rochko bc8c951083 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
2017-11-27 16:07:59 +01:00