catching moves to same parent
This commit is contained in:
parent
ba23280693
commit
b5b7f65384
|
@ -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
|
||||
|
|
|
@ -55,6 +55,7 @@ public class S3Cmd
|
|||
<AllowedHeader>*</AllowedHeader>
|
||||
</CORSRule>
|
||||
</CORSConfiguration>";
|
||||
|
||||
var result = await Run(bucketName, "mb");
|
||||
var setCors = await Run(bucketName, "PutBucketCors", cors);
|
||||
|
||||
|
|
Loading…
Reference in New Issue