From 24e57db4323915fe67754327b07c101dd9bde013 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 5 Oct 2023 13:12:53 +0300 Subject: [PATCH] lazy is only a thing for properties --- files/helpers/can_see.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/files/helpers/can_see.py b/files/helpers/can_see.py index 75b3b1ea0..b8b5c37a3 100644 --- a/files/helpers/can_see.py +++ b/files/helpers/can_see.py @@ -1,10 +1,8 @@ -from .lazy import lazy from files.classes.post import Post from files.classes.comment import Comment from files.classes.sub import Sub from flask import request -@lazy def can_see(user, other): if isinstance(other, (Post, Comment)): if not can_see(user, other.author): return False