aboutsummaryrefslogtreecommitdiffstats
path: root/loggedin.js
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-02-15 14:47:29 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-02-15 14:47:29 +0200
commit8b1406ede7389c9e50fa0c095be7a8524d265c8c (patch)
tree9b2e5304c530b245b220505e87069de4f8cd582a /loggedin.js
parent9ccbde780aceabc8df863e4e1091d1696f0defe3 (diff)
downloadfileup-8b1406ede7389c9e50fa0c095be7a8524d265c8c.tar.gz
Text editor only works for files with write permissions
Diffstat (limited to 'loggedin.js')
-rw-r--r--loggedin.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/loggedin.js b/loggedin.js
index 60a7d59..8d9e92f 100644
--- a/loggedin.js
+++ b/loggedin.js
@@ -348,7 +348,8 @@ function openfile_nondir() {
xhr.onload = function () {
focus.txt_editor.innerText = xhr.responseText;
- focus.txt_editor.contentEditable = "true";
+ if (open_file.write_permissions)
+ focus.txt_editor.contentEditable = "true";
};
}