not only lecturer can write msgs
This commit is contained in:
parent
e475585e76
commit
da333764b6
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue