catching moves to same parent

This commit is contained in:
Kim 2023-07-13 10:16:31 +02:00
parent ba23280693
commit b5b7f65384
2 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,8 @@ public static class SessionMethods
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
&& user.HasWriteAccess

View File

@ -55,6 +55,7 @@ public class S3Cmd
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>";
var result = await Run(bucketName, "mb");
var setCors = await Run(bucketName, "PutBucketCors", cors);