Skip to content

Commit

Permalink
fix: 更新控制台前端版本号为v0.5.9修复控制台用户管理列表命名空间白名单内容显示不正确问题; #190
Browse files Browse the repository at this point in the history
chore: 更新用户信息后支持刷新历史已登陆session信息
  • Loading branch information
heqingpan committed Dec 30, 2024
1 parent e06c312 commit 6b02575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ mime_guess = { version = "2" }
rusqlite = { version = "0.25", features = ["bundled"] }
rsql_builder = "0.1.5"
inner-mem-cache = "0.1.7"
rnacos-web-dist-wrap = "=0.5.8"
rnacos-web-dist-wrap = "=0.5.9"
nacos_rust_client = "0.3.2"
zip = "0.6"
tempfile = "3"
Expand Down
8 changes: 3 additions & 5 deletions src/raft/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,9 @@ impl CacheManager {

fn user_privilege_has_changed(&self, v: &CacheValue) -> bool {
if let CacheValue::UserSession(session) = &v {
if session.refresh_time > 0 {
if let Some(change_time) = self.user_privilege_change_time.get(&session.username) {
if *change_time > session.refresh_time {
return true;
}
if let Some(change_time) = self.user_privilege_change_time.get(&session.username) {
if *change_time > session.refresh_time {
return true;
}
}
}
Expand Down

0 comments on commit 6b02575

Please sign in to comment.