chore(api): rename editor role to host
This commit is contained in:
parent
4009e7eeb6
commit
e730959e9f
5 changed files with 16 additions and 16 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue