The ability to have a class of users that does not have the ability to invite other users is important for sites that want to be invite-only as a mechanism to restrict access to a selected few people, or to users who have been signed up for more than a week, or other criteria.
The attached patch sets '0' to mean zero instead of unlimited, and uses '-1' to indicate 'unlimited invites'.
| Comment | File | Size | Author |
|---|---|---|---|
| zero_invites.patch | 2.08 KB | Masque |
Comments
Comment #1
smk-ka commentedknseibert recently proposed a solution to this problem using Drupal's permission system over here, which avoids the added number arithmetic. If that approach fulfills your needs too, I think we should stick with it.
PS. Am I right supposing "You have @count invites remaining." sounds better than "... left"? I'm a non-native English speaker, so I'm just asking...
--
Stefan Kudwien
unleashed minds
Comment #2
smk-ka commentedThis has been fixed in 5.x-dev.
Comment #3
(not verified) commented