Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: limit number of users addable to group at once #10510

Merged
merged 2 commits into from Aug 24, 2020

Conversation

lis2
Copy link
Contributor

@lis2 lis2 commented Aug 24, 2020

When someone wants to add > 1000 users at once they will hit a timeout.
Therefore, we should introduce limit and inform the user when limit is exceeded.

When someone wants to add > 1000 users at once they will hit a timeout.
Therefore, we should introduce limit and inform the user when limit is exceeded.
@lis2 lis2 merged commit 7b6f851 into discourse:master Aug 24, 2020
@lis2 lis2 deleted the add-group-members-limit branch August 24, 2020 22:55
@@ -36,6 +36,7 @@ class GroupsController < ApplicationController
groups.where(automatic: true)
}
}
ADD_MEMBERS_LIMIT = 1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prevent warnings when reloading it's recommended to use the ||= operator here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants