mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
GUI桌面环境
This commit is contained in:
@@ -20,7 +20,7 @@ namespace CMLeonOS.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
if (userSystem == null || userSystem.CurrentLoggedInUser == null || !userSystem.CurrentLoggedInUser.IsAdmin)
|
||||
if (userSystem == null || UserSystem.CurrentLoggedInUser == null || !UserSystem.CurrentLoggedInUser.IsAdmin)
|
||||
{
|
||||
Console.WriteLine("Error: Only administrators can change settings.");
|
||||
return;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CMLeonOS.Commands.User
|
||||
|
||||
public static void ProcessUserCommand(string args, CMLeonOS.UserSystem userSystem, Action<string> showError)
|
||||
{
|
||||
if (userSystem == null || userSystem.CurrentLoggedInUser == null || !userSystem.CurrentLoggedInUser.IsAdmin)
|
||||
if (userSystem == null || UserSystem.CurrentLoggedInUser == null || !UserSystem.CurrentLoggedInUser.IsAdmin)
|
||||
{
|
||||
showError("Error: Only administrators can use this command.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user