Only show profile background option to the admin

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