From c631c49d98e5a8b1ea9030f98df887b744085964 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 21 Dec 2020 14:35:15 +0000 Subject: [PATCH] Don't chow image changing options on news instances --- webapp_profile.py | 49 ++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index 95b8329ff..82571a676 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -1255,34 +1255,35 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, ' \n' - editProfileForm += \ - '
\n' - editProfileForm += ' \n' + if not newsInstance: + editProfileForm += \ + '
\n' + editProfileForm += ' \n' - editProfileForm += '
\n' - editProfileForm += ' \n' + editProfileForm += '
\n' + editProfileForm += ' \n' - editProfileForm += '
\n' - editProfileForm += ' \n' + editProfileForm += '
\n' + editProfileForm += ' \n' - editProfileForm += '
\n' - editProfileForm += ' \n' + editProfileForm += '
\n' + editProfileForm += ' \n' - editProfileForm += '
\n' - editProfileForm += ' \n' + editProfileForm += '
\n' + editProfileForm += ' \n' editProfileForm += ' \n' editProfileForm += '
\n'