Don't show login button for system accounts

main
Bob Mottram 2020-10-13 11:02:36 +01:00
parent 95146b15eb
commit ea4f7c06f3
1 changed files with 4 additions and 3 deletions

View File

@ -3339,9 +3339,10 @@ def htmlProfile(defaultTimeline: str,
donateSection += '</div>\n' donateSection += '</div>\n'
if not authorized: if not authorized:
loginButton = \ if not isSystemAccount(nickname):
'<br><a href="/login"><button class="loginButton">' + \ loginButton = \
translate['Login'] + '</button></a>' '<br><a href="/login"><button class="loginButton">' + \
translate['Login'] + '</button></a>'
else: else:
editProfileStr = \ editProfileStr = \
'<a href="' + usersPath + \ '<a href="' + usersPath + \