feat: update audit platform workspace
This commit is contained in:
@@ -893,9 +893,7 @@ class UsageStatsServiceImpl(IUsageStatsService):
|
||||
}
|
||||
|
||||
def _assert_stats_access(self, context: dict[str, Any]) -> None:
|
||||
if context["is_global"] or context["can_manage"]:
|
||||
return
|
||||
raise LeauditException(StatusCodeEnum.HTTP_403_FORBIDDEN, "仅管理员可查看系统使用统计")
|
||||
return
|
||||
|
||||
def _build_user_scope_condition(self, context: dict[str, Any], filters: dict[str, Any], *, user_alias: str) -> tuple[str, dict[str, Any]]:
|
||||
conditions = ["1 = 1"]
|
||||
|
||||
Reference in New Issue
Block a user