Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2019-01-16 16:22:24 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2019-01-16 16:22:24 +0300
commitf5de77053a858b36008ddda0e5ad98da7cc36ac8 (patch)
treec03ff0f8e7cdf9cfbb929ac579f2cae68fba40ec
parente39c584997f6942cf88ae0a731bb8e27575f4261 (diff)
Added explicit `isroot` property, and changed to be a string generated from `false.ToString()`
-rw-r--r--Duplicati/Library/Backend/S3/S3IAM.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Duplicati/Library/Backend/S3/S3IAM.cs b/Duplicati/Library/Backend/S3/S3IAM.cs
index 53ce0c20c..f7e1f5429 100644
--- a/Duplicati/Library/Backend/S3/S3IAM.cs
+++ b/Duplicati/Library/Backend/S3/S3IAM.cs
@@ -160,7 +160,7 @@ namespace Duplicati.Library.Backend
{
var resultDict = new Dictionary<string, string>
{
- ["isroot"] = "False",
+ ["isroot"] = false.ToString(),
["arn"] = user.Arn,
["id"] = user.UserId,
["name"] = user.UserName,
@@ -174,6 +174,8 @@ namespace Duplicati.Library.Backend
{
return new Dictionary<string, string>
{
+ // Can be removed if the UI code is updated to check for the "ex" key first
+ ["isroot"] = false.ToString(),
["ex"] = ex.ToString(),
["error"] = $"Exception occurred while testing if CreateUser is allowed for user {user.UserId} : {ex.Message}"
};