diff --git a/themes-default/legacy/views/config_general.mako b/themes-default/legacy/views/config_general.mako index fcb511a284..f36880304a 100644 --- a/themes-default/legacy/views/config_general.mako +++ b/themes-default/legacy/views/config_general.mako @@ -724,9 +724,9 @@ % if gh_branch: % for cur_branch in gh_branch: - % if app.GIT_USERNAME and app.GIT_PASSWORD and app.DEVELOPER == 1: + % if ((app.GIT_USERNAME and app.GIT_PASSWORD) or app.GIT_TOKEN) and app.DEVELOPER == 1: - % elif app.GIT_USERNAME and app.GIT_PASSWORD and cur_branch in ['master', 'develop']: + % elif ((app.GIT_USERNAME and app.GIT_PASSWORD) or app.GIT_TOKEN) and cur_branch in ['master', 'develop']: % elif cur_branch == 'master': diff --git a/themes/dark/templates/config_general.mako b/themes/dark/templates/config_general.mako index fcb511a284..f36880304a 100644 --- a/themes/dark/templates/config_general.mako +++ b/themes/dark/templates/config_general.mako @@ -724,9 +724,9 @@ % if gh_branch: % for cur_branch in gh_branch: - % if app.GIT_USERNAME and app.GIT_PASSWORD and app.DEVELOPER == 1: + % if ((app.GIT_USERNAME and app.GIT_PASSWORD) or app.GIT_TOKEN) and app.DEVELOPER == 1: - % elif app.GIT_USERNAME and app.GIT_PASSWORD and cur_branch in ['master', 'develop']: + % elif ((app.GIT_USERNAME and app.GIT_PASSWORD) or app.GIT_TOKEN) and cur_branch in ['master', 'develop']: % elif cur_branch == 'master': diff --git a/themes/light/templates/config_general.mako b/themes/light/templates/config_general.mako index fcb511a284..f36880304a 100644 --- a/themes/light/templates/config_general.mako +++ b/themes/light/templates/config_general.mako @@ -724,9 +724,9 @@