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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user