diff options
author | nea <romangraef@gmail.com> | 2021-08-16 15:45:27 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2021-08-16 15:45:27 +0200 |
commit | 1159d5ad67594d98f0aa4e9899ece0406f423497 (patch) | |
tree | 03eea5b84aaa45cb876e3ce8251f98e0c61e62ac /src/jsMain/kotlin | |
parent | 3e1becfa688f2cba280c475caf39aec3ce14a095 (diff) | |
download | webos-1159d5ad67594d98f0aa4e9899ece0406f423497.tar.gz webos-1159d5ad67594d98f0aa4e9899ece0406f423497.tar.bz2 webos-1159d5ad67594d98f0aa4e9899ece0406f423497.zip |
file service tests
Diffstat (limited to 'src/jsMain/kotlin')
-rw-r--r-- | src/jsMain/kotlin/io/files.kt | 2 |
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 } |