From ad7f3b7363bfbae072959fa3930e30ab20ea6f39 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 6 Oct 2022 00:34:57 -0700 Subject: [PATCH] > to >= --- files/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 346b32ada..33af4d068 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1213,7 +1213,7 @@ def sticky_post(post_id, v): if not post.stickied: pins = g.db.query(Submission).filter(Submission.stickied != None, Submission.is_banned == False).count() if pins >= PIN_LIMIT: - if v.admin_level > PERMS['BYPASS_PIN_LIMIT']: + if v.admin_level >= PERMS['BYPASS_PIN_LIMIT']: post.stickied = v.username post.stickied_utc = int(time.time()) + 3600 else: return {"error": f"Can't exceed {PIN_LIMIT} pinned posts limit!"}, 403