Permalink
Browse files

Up the limit for new collaborators on a worksheet to adding 500 colla…

…borators at a time.
  • Loading branch information...
1 parent e166b9b commit 6e84f3ba352bfec1a2b5e531a01e02d08fcbb0d2 Jason Grout committed Dec 20, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 flask_version/worksheet.py
@@ -569,9 +569,9 @@ def worksheet_invite_collab(worksheet):
id_number = worksheet.id_number()
old_collaborators = set(worksheet.collaborators())
collaborators = set([u.strip() for u in request.values.get('collaborators', '').split(',') if u!=owner])
- if len(collaborators-old_collaborators)>100:
- # to prevent abuse, you can't add more than 100 collaborators at a time
- return current_app.message(_("Error: can't add more than 100 collaborators at a time"), cont=url_for_worksheet(worksheet))
+ if len(collaborators-old_collaborators)>500:
+ # to prevent abuse, you can't add more than 500 collaborators at a time
+ return current_app.message(_("Error: can't add more than 500 collaborators at a time"), cont=url_for_worksheet(worksheet))
worksheet.set_collaborators(collaborators)
user_manager = g.notebook.user_manager()
# add worksheet to new collaborators

0 comments on commit 6e84f3b

Please sign in to comment.