diff --git a/csharp/App/Backend/DataTypes/Methods/Session.cs b/csharp/App/Backend/DataTypes/Methods/Session.cs index 3ba5641de..4856816cd 100644 --- a/csharp/App/Backend/DataTypes/Methods/Session.cs +++ b/csharp/App/Backend/DataTypes/Methods/Session.cs @@ -54,6 +54,8 @@ public static class SessionMethods var user = session?.User; var installation = Db.GetInstallationById(installationId); var parent = Db.GetFolderById(parentId); + + if(installation.ParentId == parentId) return false; return user is not null && installation is not null diff --git a/csharp/App/Backend/S3/S3Cmd.cs b/csharp/App/Backend/S3/S3Cmd.cs index 0851e5534..6cd4a8f6e 100644 --- a/csharp/App/Backend/S3/S3Cmd.cs +++ b/csharp/App/Backend/S3/S3Cmd.cs @@ -55,6 +55,7 @@ public class S3Cmd * "; + var result = await Run(bucketName, "mb"); var setCors = await Run(bucketName, "PutBucketCors", cors);