✨ Handle readonly access
This commit is contained in:
+2
-1
@@ -82,10 +82,11 @@ func (cmd *CmdServe) Run(app *app) error {
|
||||
return
|
||||
}
|
||||
|
||||
// TODO determine permissions
|
||||
readonly := share.ReadOnly || share.Role == ShareRoleReader
|
||||
|
||||
directoryMapping := DirectoryMapping{
|
||||
DataDirName: share.UUID.String(),
|
||||
ReadOnly: readonly,
|
||||
}
|
||||
|
||||
// Use the WebDAV handler to actually serve the request. Also enhance the context
|
||||
|
||||
Reference in New Issue
Block a user