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,11 +1205,12 @@ 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'
editProfileForm += \ if nickname == adminNickname:
' <br><label class="labels">' + \ editProfileForm += \
translate['Background image'] + '</label>\n' ' <br><label class="labels">' + \
editProfileForm += ' <input type="file" id="image" name="image"' translate['Background image'] + '</label>\n'
editProfileForm += ' accept="' + imageFormats + '">\n' editProfileForm += ' <input type="file" id="image" name="image"'
editProfileForm += ' accept="' + imageFormats + '">\n'
editProfileForm += ' <br><label class="labels">' + \ editProfileForm += ' <br><label class="labels">' + \
translate['Timeline banner image'] + '</label>\n' translate['Timeline banner image'] + '</label>\n'