Commit Graph

8 Commits (630436ab2d84b5ed2334ad510cb9ad6253050ae5)

Author SHA1 Message Date
ThibG cb62a83a71 Add invite comments ()
ThibG 92569ffde8 Fix invites not being disabled upon account suspension ()
* Disable invite links from disabled/suspended users

* Add has_many invites relationship to users

* Destroy unused invites when suspending an account
Yamagishi Kazutoshi e8ffecbd36 Set @body_classes to admin layout ()
Eugen Rochko 79a1f667c5 Order invites by recent first ()
Fix 
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