fix: multiple rows were found correctly (#2219)
This commit is contained in:
parent
2068ae215e
commit
828822243a
13 changed files with 49 additions and 48 deletions
|
|
@ -157,7 +157,7 @@ class MessageAnnotationApi(Resource):
|
|||
@marshal_with(annotation_fields)
|
||||
def post(self, app_id):
|
||||
# The role of the current user in the ta table must be admin or owner
|
||||
if current_user.current_tenant.current_role not in ['admin', 'owner']:
|
||||
if not current_user.is_admin_or_owner:
|
||||
raise Forbidden()
|
||||
|
||||
app_id = str(app_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue