Aevann 2023-03-04 23:50:19 +02:00
parent 6162d02ca3
commit 8d57a983cd
2 changed files with 22 additions and 1 deletions

View File

@ -122,6 +122,9 @@ def comment(v:User):
parent_user = parent if isinstance(parent, User) else parent.author
posting_to_submission = isinstance(post_target, Submission)
if posting_to_submission and post_target.id in ADMIGGER_THREADS and not v.admin_level:
abort(403, "You can't post in this thread!")
if not User.can_see(v, parent): abort(403)
if not isinstance(parent, User) and parent.deleted_utc != 0:
if isinstance(parent, Submission):

View File

@ -72,7 +72,25 @@
'Submit a design to be added to our redbubble shop.',
'fa-shirt', '#777777',
'/post/110669',
)
),
(
'View All Sidebar Pictures',
'',
'fa-sidebar', '#f5fffa',
'/post/37696',
),
(
'View All Banner Pictures',
'',
'fa-panorama', '#87cefa',
'/post/37697',
),
(
'View All Snappy Quotes',
'',
'fa-robot', '#adff2f',
'/post/37749',
),
])-%}
{%- endif -%}