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'
if not authorized:
loginButton = \
'<br><a href="/login"><button class="loginButton">' + \
translate['Login'] + '</button></a>'
if not isSystemAccount(nickname):
loginButton = \
'<br><a href="/login"><button class="loginButton">' + \
translate['Login'] + '</button></a>'
else:
editProfileStr = \
'<a href="' + usersPath + \