增加功能:只有管理员才可以使用user命令

This commit is contained in:
2026-02-06 21:20:28 +08:00
parent 96930adf91
commit 03309b1288
2 changed files with 14 additions and 0 deletions

View File

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