From da333764b6245a4e3fd31a3cc681ad99e14b78de Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Sun, 2 Aug 2015 21:41:54 +0300 Subject: [PATCH] not only lecturer can write msgs --- SE_API/MessageRoutes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SE_API/MessageRoutes.py b/SE_API/MessageRoutes.py index cb3eee1..ff139a5 100644 --- a/SE_API/MessageRoutes.py +++ b/SE_API/MessageRoutes.py @@ -68,8 +68,8 @@ def createMessage(token): """ if not request.data: return bad_request("no data") - if not is_lecturer(token): #todo: change to lecturer id - return forbidden("Invalid token or not a lecturer!") + # if not is_lecturer(token): #todo: change to lecturer id + # return forbidden("Invalid token or not a lecturer!") user = get_user_by_token(token)