comments-order-hotfix-2
Some checks failed
Deploy on push / deploy (push) Failing after 20s

This commit is contained in:
Untone 2024-02-29 20:00:35 +03:00
parent bd905021ae
commit bdf78bb45d

View File

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