summaryrefslogtreecommitdiff
path: root/src/mailman/rest/members.py
diff options
context:
space:
mode:
authorAnirudh Dahiya2016-03-11 18:00:31 +0530
committerBarry Warsaw2016-03-22 20:36:46 -0400
commit91aa1c7a2dda8e4a4c2f544abdd9ae3dbbe231e7 (patch)
tree5a10e05c9e26ad80bcd9c3d3840609746ecd5f39 /src/mailman/rest/members.py
parentb798e2e751ee06e07d0966658f2b66e1c6174948 (diff)
downloadmailman-91aa1c7a2dda8e4a4c2f544abdd9ae3dbbe231e7.tar.gz
mailman-91aa1c7a2dda8e4a4c2f544abdd9ae3dbbe231e7.tar.zst
mailman-91aa1c7a2dda8e4a4c2f544abdd9ae3dbbe231e7.zip
Diffstat (limited to 'src/mailman/rest/members.py')
-rw-r--r--src/mailman/rest/members.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mailman/rest/members.py b/src/mailman/rest/members.py
index 9e2c4fbba..ea47b50d6 100644
--- a/src/mailman/rest/members.py
+++ b/src/mailman/rest/members.py
@@ -260,21 +260,12 @@ class AllMembers(_MemberBase):
pre_verified = arguments.pop('pre_verified', False)
pre_confirmed = arguments.pop('pre_confirmed', False)
pre_approved = arguments.pop('pre_approved', False)
- '''
- # Check if the request for this email is already pending under moderation
- pendings = getUtility(IPendings).find(mlist=mlist, pend_type='subscription')
- for token,pendable in pendings:
- if pendable['email']==subscriber.email and pendable['token_owner']=='moderator':
- conflict(response,b'Subscription request pending for moderation')
- return
- '''
# Now we can run the registration process until either the
# subscriber is subscribed, or the workflow is paused for
# verification, confirmation, or approval.
try:
registrar = IRegistrar(mlist)
except SubscriptionPendingError:
- print('hi')
conflict(response ,b'Subscrition request already pending')
return
try: