mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
增加功能:只有管理员才可以使用user命令
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user