fix bug privacity

This commit is contained in:
Cayo Puigdefabregas 2022-11-30 15:19:59 +01:00
parent f1042b627b
commit fe9c2c1c2d
1 changed files with 4 additions and 2 deletions

View File

@ -152,8 +152,10 @@ class ErasureListView(DeviceListMixin):
where action.parent_id is null or placeholder.kangaroo=true
"""
ids = (e[0] for e in db.session.execute(sql))
erasure = EraseBasic.query.filter(EraseBasic.id.in_(ids)).order_by(
EraseBasic.created.desc()
erasure = (
EraseBasic.query.filter(EraseBasic.id.in_(ids))
.filter_by(author=g.user)
.order_by(EraseBasic.created.desc())
)
self.context['orphans'] = True