aboutsummaryrefslogtreecommitdiffstats
path: root/loggedin.js
diff options
context:
space:
mode:
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";
};
}