mirror of
https://github.com/9001/copyparty.git
synced 2026-03-16 05:03:26 +10:00
reject anon ftp if anon has no read/write
This commit is contained in:
@@ -56,7 +56,9 @@ class FtpAuth(DummyAuthorizer):
|
||||
|
||||
handler.username = uname
|
||||
|
||||
if password and not uname:
|
||||
if (password and not uname) or not (
|
||||
asrv.vfs.aread.get(uname) or asrv.vfs.awrite.get(uname)
|
||||
):
|
||||
raise AuthenticationFailed("Authentication failed.")
|
||||
|
||||
def get_home_dir(self, username: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user