gfd
This commit is contained in:
parent
5d74f650f3
commit
6c560def4d
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ def notifications(v):
|
|||
messages = request.values.get('messages')
|
||||
modmail = request.values.get('modmail')
|
||||
posts = request.values.get('posts')
|
||||
if modmail and v.admin_level > 2:
|
||||
if modmail and v.admin_level > 1:
|
||||
comments = g.db.query(Comment).filter(Comment.sentto==2).order_by(Comment.id.desc()).offset(25*(page-1)).limit(26).all()
|
||||
next_exists = (len(comments) > 25)
|
||||
comments = comments[:25]
|
||||
|
|
|
@ -322,7 +322,7 @@ def submit_contact(v):
|
|||
)
|
||||
g.db.add(new_comment)
|
||||
g.db.flush()
|
||||
for admin in g.db.query(User).filter(User.admin_level > 2).all():
|
||||
for admin in g.db.query(User).filter(User.admin_level > 1).all():
|
||||
notif = Notification(comment_id=new_comment.id, user_id=admin.id)
|
||||
g.db.add(notif)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue