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, "
|
log.warning("Your auth entry for %s contains no auth level, "
|
||||||
"using AUTH_LEVEL_DEFAULT(%s)..", username,
|
"using AUTH_LEVEL_DEFAULT(%s)..", username,
|
||||||
AUTH_LEVEL_DEFAULT)
|
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
|
# This is probably an old auth file
|
||||||
save_and_reload = True
|
save_and_reload = True
|
||||||
elif len(lsplit) == 3:
|
elif len(lsplit) == 3:
|
||||||
|
|
Loading…
Reference in New Issue