Check that admin is defined in config

main
Bob Mottram 2020-10-10 16:56:44 +01:00
parent 0154c77b54
commit 81fcf117b7
2 changed files with 91 additions and 90 deletions

View File

@ -1543,6 +1543,7 @@ def htmlEditProfile(translate: {}, baseDir: str, path: str,
moderatorsStr = ''
themesDropdown = ''
adminNickname = getConfigParam(baseDir, 'admin')
if adminNickname:
if path.startswith('/users/' + adminNickname + '/'):
instanceDescription = \
getConfigParam(baseDir, 'instanceDescription')