1
0
mirror of https://github.com/drakkan/sftpgo.git synced 2025-11-23 22:04:50 +02:00

subdir perms: allow empty perms

empty perms will allow nothing on the specified subdir.

Non empty permissions for the "/" dir are still required.

Fixes #70
This commit is contained in:
Nicola Murino
2020-02-10 19:28:35 +01:00
parent 7bfe0ddf80
commit 8eff2df39c
5 changed files with 39 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ class SFTPGoApiRequests:
directory = value
else:
values = [v.strip() for v in value.split(',') if v.strip()]
if directory and values:
if directory:
permissions.update({directory:values})
return permissions