diff --git a/docs/img/ss.png b/docs/img/ss.png index 26aa8b4..4746bdd 100644 Binary files a/docs/img/ss.png and b/docs/img/ss.png differ diff --git a/paperboy/storage/sqla/base.py b/paperboy/storage/sqla/base.py index 2464088..33e472b 100644 --- a/paperboy/storage/sqla/base.py +++ b/paperboy/storage/sqla/base.py @@ -51,10 +51,7 @@ def _detail(self, SqlCls, user, params, session, *args, **kwargs): if id < 0: return {} - nb_sql = session.query(SqlCls) \ - .filter(SqlCls.userId == int(user.id) or - (hasattr(SqlCls, 'privacy') and SqlCls.privacy == 'public')) \ - .get(id) + nb_sql = session.query(SqlCls).get(id) # FIXME permission? logging.critical('detail : {}, result : {}'.format(id, nb_sql))