mirror of
https://github.com/bitwarden/directory-connector
synced 2026-01-02 00:23:14 +00:00
set access control on setting data folder
This commit is contained in:
@@ -783,6 +783,15 @@ namespace Bit.Console
|
||||
}
|
||||
|
||||
Con.WriteLine();
|
||||
|
||||
if((start || stop) && !Helpers.IsAdministrator())
|
||||
{
|
||||
Con.ForegroundColor = ConsoleColor.Red;
|
||||
Con.WriteLine("You must be an administrator to control the service.");
|
||||
Con.ResetColor();
|
||||
return Task.FromResult(0);
|
||||
}
|
||||
|
||||
if(start)
|
||||
{
|
||||
Con.WriteLine("Starting service...");
|
||||
|
||||
Reference in New Issue
Block a user