This commit is contained in:
xuyue committed 2026-06-04 04:48:25 -06:00
1 parent 745ddb56f9
commit f6e41dc349
2 files changed
+6 -2

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ from .models import ProblemPermission
class BasePermissionDecorator(object):
def __init__(self, func):
self.func = func
functools.update_wrapper(self, func)
def __get__(self, obj, obj_type):
if inspect.iscoroutinefunction(self.func):