hide sandshit for loggedout on WPD again
parent
57ca35af44
commit
084e0975e5
|
@ -6,6 +6,9 @@ from flask import request
|
||||||
|
|
||||||
def can_see(user, obj):
|
def can_see(user, obj):
|
||||||
if isinstance(obj, (Post, Comment)):
|
if isinstance(obj, (Post, Comment)):
|
||||||
|
if not user and SITE == 'watchpeopledie.tv' and isinstance(obj, Post) and obj.hole == 'sandshit':
|
||||||
|
return False
|
||||||
|
|
||||||
if not can_see(user, obj.author): return False
|
if not can_see(user, obj.author): return False
|
||||||
if user and user.id == obj.author_id: return True
|
if user and user.id == obj.author_id: return True
|
||||||
if isinstance(obj, Post):
|
if isinstance(obj, Post):
|
||||||
|
|
Loading…
Reference in New Issue