result-fix-2
Some checks failed
Deploy on push / deploy (push) Failing after 19s

This commit is contained in:
2024-03-04 21:08:01 +03:00
parent 2f4747a5de
commit ef25ebc7bc
2 changed files with 2 additions and 3 deletions

View File

@@ -218,7 +218,7 @@ async def update_shout(_, info, shout_id, shout_input=None, publish=False):
return {'error': 'shout not found'}
if (
shout.created_by != author.id
and not shout.authors.contains(author.id)
and not filter(lambda x: x == author.id, shout.authors)
and 'editor' not in roles
):
return {'error': 'access denied'}