Little tweak.

This commit is contained in:
2016-05-06 10:49:35 +02:00
parent eb5ad24a32
commit ef6ea3a927

View File

@@ -109,9 +109,7 @@ class Project(List, Find, Create, Post, Update, Delete, Replace):
'user_id': str(user_id),
'action': action}
headers = self.http_headers()
response = api.post(url, payload, headers)
if response['_status'] != 'OK':
return False
return api.post(url, payload, headers)
def add_user(self, user_id, api=None):
"""Add a user to a project given its ObjectId."""