rbac/wwwroot/find_unauth_files.dspy

10 lines
436 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

wwwroot = params_kw.get('wwwroot', '').strip()
async with get_sor_context(request._run_ns, 'rbac') as sor:
# dspy 运行时无 __file__用 ahserver 注入的 ref_real_path本 dspy 文件真实绝对路径)
title, message, is_error = await request._run_ns.scan_unauth_files(sor, wwwroot, request._run_ns.ref_real_path)
if is_error:
return UiError(title=title, message=message)
return UiMessage(title=title, message=message)