增加功能:设置只有管理员才可以设置

This commit is contained in:
2026-02-06 20:30:20 +08:00
parent 361931c091
commit 96930adf91
3 changed files with 56 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ namespace CMLeonOS
envManager = EnvironmentVariableManager.Instance;
Commands.AliasCommand.LoadAliases();
Commands.SettingsCommand.SetUserSystem(userSystem);
User currentUser = userSystem.CurrentLoggedInUser;
if (currentUser != null && !string.IsNullOrWhiteSpace(currentUser.Username))