From ad30a3a1f39af18821502d585e8c50ac2b1f5470 Mon Sep 17 00:00:00 2001 From: Daniel Kranich Date: Fri, 11 Feb 2022 22:52:56 -0900 Subject: [PATCH] Add Global Readonly (#158) Added a global readonly variable that will force readonly mode both when not using the auth system and for all users if the auth system is being used. Co-authored-by: Prasath Mani --- tinyfilemanager.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index cbaf142..6462b56 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -36,6 +36,13 @@ $readonly_users = array( 'user' ); +// Global readonly, including when auth is not being used +$global_readonly = false; + +// user specific directories +// array('Username' => 'Directory path', 'Username2' => 'Directory path', ...) +$directories_users = array(); + // Enable highlight.js (https://highlightjs.org/) on view's page $use_highlightjs = true;