chore(api): rename editor role to host

This commit is contained in:
jo 2022-06-27 17:13:05 +02:00 committed by Kyle Robbertze
parent 4009e7eeb6
commit e730959e9f
5 changed files with 16 additions and 16 deletions

View file

@ -18,7 +18,7 @@ REQUEST_PERMISSION_TYPE_MAP = {
def get_own_obj(request, view):
user = request.user
if user is None or user.role != Role.EDITOR:
if user is None or user.role != Role.HOST:
return ""
if request.method == "GET":
return ""