[FIX] EMPLOYEE: Employee accessibility issue

This commit is contained in:
Horilla
2025-02-07 13:27:45 +05:30
parent f8395dd2c5
commit e18dc77fb8
2 changed files with 11 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ def enter_if_accessible(function, feature, perm=None, method=None):
if perm:
has_perm = request.user.has_perm(perm)
if accessible or has_perm or (method and method(request)):
if accessible or has_perm or (method and method(request, *args, **kwargs)):
return function(request, *args, **kwargs)
key = "HTTP_HX_REQUEST"
keys = request.META.keys()