Skip to content

Commit

Permalink
add comment to warn about keeping INVITES_LIMIT low
Browse files Browse the repository at this point in the history
If INVITES_LIMIT is allowed to be greater than MAX_EMAIL_INVITES_BY_USER
then the inviter can send more than MAX_EMAIL_INVITES_BY_USER invitations
at once.
  • Loading branch information
Alys authored and SabreCat committed Apr 12, 2017
1 parent 2f010e4 commit 33380f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/server/models/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import stripePayments from '../libs/stripePayments';
const questScrolls = shared.content.quests;
const Schema = mongoose.Schema;

export const INVITES_LIMIT = 100;
export const INVITES_LIMIT = 100; // must not be greater than MAX_EMAIL_INVITES_BY_USER
export const TAVERN_ID = shared.TAVERN_ID;

const NO_CHAT_NOTIFICATIONS = [TAVERN_ID];
Expand Down

0 comments on commit 33380f6

Please sign in to comment.