Only show profile background option to the admin

main
Bob Mottram 2020-11-12 20:28:44 +00:00
parent 642fd31c7d
commit 7b63f06d86
1 changed files with 6 additions and 5 deletions

View File

@ -1205,6 +1205,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
' <input type="file" id="avatar" name="avatar"' ' <input type="file" id="avatar" name="avatar"'
editProfileForm += ' accept="' + imageFormats + '">\n' editProfileForm += ' accept="' + imageFormats + '">\n'
if nickname == adminNickname:
editProfileForm += \ editProfileForm += \
' <br><label class="labels">' + \ ' <br><label class="labels">' + \
translate['Background image'] + '</label>\n' translate['Background image'] + '</label>\n'