skipping sudo check for root user
This commit is contained in:
parent
cf74b879c6
commit
3dabaeb2c9
1 changed files with 4 additions and 0 deletions
|
@ -669,6 +669,10 @@ ErrorCode ServerController::isServerPortBusy(const ServerCredentials &credential
|
|||
|
||||
ErrorCode ServerController::isUserInSudo(const ServerCredentials &credentials, DockerContainer container)
|
||||
{
|
||||
if (credentials.userName == "root") {
|
||||
return ErrorCode::NoError;
|
||||
}
|
||||
|
||||
QString stdOut;
|
||||
auto cbReadStdOut = [&](const QString &data, libssh::Client &) {
|
||||
stdOut += data + "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue