mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -06:00
reject anon ftp if anon has no read/write
This commit is contained in:
parent
f5474d34ac
commit
75a58b435d
|
@ -56,7 +56,9 @@ class FtpAuth(DummyAuthorizer):
|
||||||
|
|
||||||
handler.username = uname
|
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.")
|
raise AuthenticationFailed("Authentication failed.")
|
||||||
|
|
||||||
def get_home_dir(self, username: str) -> str:
|
def get_home_dir(self, username: str) -> str:
|
||||||
|
|
Loading…
Reference in a new issue