mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
When parsing the auth file, if an old format is found(with no auth levels), make sure that the localclient
always has the ADMIN permission as he should.
This commit is contained in:
parent
98a8be7131
commit
81d22eb730
@ -267,7 +267,10 @@ class AuthManager(component.Component):
|
||||
log.warning("Your auth entry for %s contains no auth level, "
|
||||
"using AUTH_LEVEL_DEFAULT(%s)..", username,
|
||||
AUTH_LEVEL_DEFAULT)
|
||||
authlevel = AUTH_LEVEL_DEFAULT
|
||||
if username == 'localclient':
|
||||
authlevel = AUTH_LEVEL_ADMIN
|
||||
else:
|
||||
authlevel = AUTH_LEVEL_DEFAULT
|
||||
# This is probably an old auth file
|
||||
save_and_reload = True
|
||||
elif len(lsplit) == 3:
|
||||
|
Loading…
x
Reference in New Issue
Block a user