From 5b627da97a64963b45ba090a1d7deb6fff699d7d Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Mon, 21 Oct 2024 16:12:16 -0400 Subject: [PATCH 1/2] update customization page for disabling uploads & downloads --- source/customizations.rst | 14 ++++++++++++++ source/reference/files/ondemand-d-ymls.rst | 2 +- source/release-notes/v3.1-release-notes.rst | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/source/customizations.rst b/source/customizations.rst index 63704de5..9246b89e 100644 --- a/source/customizations.rst +++ b/source/customizations.rst @@ -378,6 +378,20 @@ app. .. include:: customizations/main-navigation.inc .. include:: customizations/interactive-apps-menu.inc + +Disable uploads or downloads +---------------------------- + +By default, Open OnDemand will allow users to upload and download files. +Both can be disabled through configuration. + +Use :ref:`download_enabled for disabling downloads ` +and :ref:`upload_enabled for disabling uploads `. + +.. tip:: + Use File Access Controls (FACLs) on the ondemand.d files to enable + or disable uploads or downloads based on group permissions. + .. _set-upload-limits: Set Upload Limits diff --git a/source/reference/files/ondemand-d-ymls.rst b/source/reference/files/ondemand-d-ymls.rst index b9e3f108..5895b954 100644 --- a/source/reference/files/ondemand-d-ymls.rst +++ b/source/reference/files/ondemand-d-ymls.rst @@ -777,7 +777,7 @@ Configuration Properties upload_enabled: false -.. _downlad_enabled: +.. _download_enabled: .. describe:: download_enabled (Boolean, true) Enable downloading files. diff --git a/source/release-notes/v3.1-release-notes.rst b/source/release-notes/v3.1-release-notes.rst index e16dc3e9..6d8196a8 100644 --- a/source/release-notes/v3.1-release-notes.rst +++ b/source/release-notes/v3.1-release-notes.rst @@ -263,7 +263,7 @@ Disabling uploads and downloads ............................... Sites can now disable uploads and downloads through the file -browser. See the configuration for :ref:`disabling downloads ` +browser. See the configuration for :ref:`disabling downloads ` and :ref:`disabling uploads ` for how to configure this. Custom Javascript files From 1f9064244010856c8645295fede799ce0708e638 Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Tue, 22 Oct 2024 10:31:43 -0400 Subject: [PATCH 2/2] add note about when it was added --- source/reference/files/ondemand-d-ymls.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/reference/files/ondemand-d-ymls.rst b/source/reference/files/ondemand-d-ymls.rst index 5895b954..b962de57 100644 --- a/source/reference/files/ondemand-d-ymls.rst +++ b/source/reference/files/ondemand-d-ymls.rst @@ -760,6 +760,8 @@ Configuration Properties .. _upload_enabled: .. describe:: upload_enabled (Boolean, true) + .. versionadded:: 3.1 + Enable uploading files. Default @@ -780,6 +782,8 @@ Configuration Properties .. _download_enabled: .. describe:: download_enabled (Boolean, true) + .. versionadded:: 3.1 + Enable downloading files. Default