From 7b63f06d86854dd245b6583c984da65f2305260e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 12 Nov 2020 20:28:44 +0000 Subject: [PATCH] Only show profile background option to the admin --- webapp_profile.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index 642e81ff..c1bb7644 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -1205,11 +1205,12 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, ' \n' - editProfileForm += \ - '
\n' - editProfileForm += ' \n' + if nickname == adminNickname: + editProfileForm += \ + '
\n' + editProfileForm += ' \n' editProfileForm += '
\n'