update-shout-fix-9
This commit is contained in:
parent
f378925a16
commit
13f6c43df2
|
@ -179,7 +179,6 @@ async def update_shout(_, info, shout_id: int, shout_input=None, publish=False):
|
||||||
roles = info.context.get('roles', [])
|
roles = info.context.get('roles', [])
|
||||||
shout_input = shout_input or {}
|
shout_input = shout_input or {}
|
||||||
current_time = int(time.time())
|
current_time = int(time.time())
|
||||||
shout_id = shout_id or shout_input.get('id')
|
|
||||||
slug = shout_input.get('slug')
|
slug = shout_input.get('slug')
|
||||||
if not user_id:
|
if not user_id:
|
||||||
return {"error": "unauthorized"}
|
return {"error": "unauthorized"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user