From bdf78bb45d9df21c8b2141664be56067db3ccc41 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 29 Feb 2024 20:00:35 +0300 Subject: [PATCH] comments-order-hotfix-2 --- resolvers/editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/editor.py b/resolvers/editor.py index 5d0d94e8..929793ed 100644 --- a/resolvers/editor.py +++ b/resolvers/editor.py @@ -217,8 +217,8 @@ async def update_shout(_, info, shout_id, shout_input=None, publish=False): if not shout: return {'error': 'shout not found'} if ( - shout.created_by is not author.id - and author.id not in shout.authors + shout.created_by != author.id + and not shout.authors.contains(author.id) and 'editor' not in roles ): return {'error': 'access denied'}