修复统计图
Build and publish Jiaowu packages and container image / Test, package and publish (push) Successful in 34m39s
Build and publish Jiaowu packages and container image / Test, package and publish (push) Successful in 34m39s
This commit is contained in:
1 parent
66622ca207
commit
7bcfa1a7a4
2 files changed
+64
-3
No files matched your search
@@ -25,7 +25,12 @@ public sealed class StatisticsController(
|
||||
SystemRoles.CollegeAdmin + "," +
|
||||
SystemRoles.Leader;
|
||||
|
||||
private Guid? RestrictedCollegeId => currentUserDataScope.Current.RestrictedCollegeId;
|
||||
// HybridCache may execute its source factory without the request's ambient
|
||||
// HttpContext. Keep the authorization scope stable for the whole controller
|
||||
// invocation instead of resolving it again inside that background factory.
|
||||
private readonly CurrentUserScope currentUser = currentUserDataScope.Current;
|
||||
|
||||
private Guid? RestrictedCollegeId => currentUser.RestrictedCollegeId;
|
||||
|
||||
private Guid? ResolveCollegeId(Guid? requestedCollegeId)
|
||||
{
|
||||
@@ -982,7 +987,7 @@ public sealed class StatisticsController(
|
||||
params string?[] filters) =>
|
||||
AppCacheKeys.Statistics(
|
||||
area,
|
||||
currentUserDataScope.Current.Scope.ToString(),
|
||||
currentUser.Scope.ToString(),
|
||||
effectiveCollegeId,
|
||||
filters);
|
||||
|
||||
|
||||
Reference in new issue
Block a user