(perm, *args, **kwargs)
return permission_required(perm, *args, **kwargs)
Decorator that wraps the permission_required decorator and returns a
    permission denied (403) page instead of redirecting to the login URL.
Decorator that wraps the permission_required decorator and returns a
    permission denied (403) page instead of redirecting to the login URL.
Decorator that wraps the permission_required decorator and returns a permission denied ( 403 ) page instead of redirecting to the login URL .
def permission_required_or_403(perm, *args, **kwargs):
    """
    Decorator that wraps the permission_required decorator and returns a
    permission denied (403) page instead of redirecting to the login URL.
    """
    kwargs["redirect_to_login"] = False
    return permission_required(perm, *args, **kwargs)
def permission_required_or_403 ( perm , * args , * * kwargs ) : kwargs [ "redirect_to_login" ] = False return permission_required ( perm , * args , * * kwargs )