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'.

CommentFileSizeAuthor
zero_invites.patch2.08 KBMasque

Comments

smk-ka’s picture

knseibert 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

smk-ka’s picture

Status: Needs review » Fixed

This has been fixed in 5.x-dev.

Anonymous’s picture

Status: Fixed » Closed (fixed)