summaryrefslogtreecommitdiff
path: root/src/jsMain/kotlin/io/files.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/jsMain/kotlin/io/files.kt')
-rw-r--r--src/jsMain/kotlin/io/files.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsMain/kotlin/io/files.kt b/src/jsMain/kotlin/io/files.kt
index 9e3e6a0..4c53c4e 100644
--- a/src/jsMain/kotlin/io/files.kt
+++ b/src/jsMain/kotlin/io/files.kt
@@ -175,7 +175,7 @@ class PrimitiveFileService : FileService<PrimitiveINode> {
if (storageBlobs.containsKey(iNode.internalPath)) return CreateFileResult.Failure.AlreadyExists
val parent = getStorageBlob(resolve(iNode, ".."))
if (parent !is PrimitiveStorageBlob.Directory) return CreateFileResult.Failure.NoParent
- if (hasPermission(user, parent) { write }) return CreateFileResult.Failure.NoPermission
+ if (!hasPermission(user, parent) { write }) return CreateFileResult.Failure.NoPermission
return null
}