mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
fix(filetransfer): allow non-admin file uploads and downloads (#679)
* fix(filetransfer): remove auth.AdminsOnly middleware wrapper from routes * fix(filetransfer): add config option to allow non-admin users to download and upload files. * fix(filetransfer): implement user permissions for file download and upload in client. --------- Co-authored-by: Miroslav Šedivý <sedivy.miro@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e843961c37
commit
613647c72c
@@ -59,11 +59,15 @@ The file transfer plugin is a simple pre-loaded internal plugin that allows you
|
||||
type: 'duration',
|
||||
defaultValue: '30s',
|
||||
},
|
||||
'filetransfer.user_download': false,
|
||||
'filetransfer.user_upload': false,
|
||||
}} />
|
||||
|
||||
- <Def id="filetransfer.enabled" /> enables the file transfer support. If set to `false`, the file transfer is disabled.
|
||||
- <Def id="filetransfer.dir" /> refers to the directory where the files are stored.
|
||||
- <Def id="filetransfer.refresh_interval" /> refers to the interval at which the file list is refreshed.
|
||||
- <Def id="filetransfer.user_download" /> allows non-admin users to download files. If set to `false` (default), only admins can download files.
|
||||
- <Def id="filetransfer.user_upload" /> allows non-admin users to upload files. If set to `false` (default), only admins can upload files.
|
||||
|
||||
The file transfer plugin extends user profile and room settings by adding the following fields:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user