Skip to content

Commit

Permalink
update screen shot for #16
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Nov 10, 2018
1 parent f55dd63 commit 8e283b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Binary file modified docs/img/ss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions paperboy/storage/sqla/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 8e283b6

Please sign in to comment.