Add team preference to use logo for branding (#4285)

* feat: add team preference to use logo for branding

* fix: allow on cloud version too
This commit is contained in:
Apoorv Mishra
2022-10-19 10:01:24 +05:30
committed by GitHub
parent 98f997387c
commit bb21fa725c
11 changed files with 27 additions and 17 deletions

View File

@@ -54,6 +54,7 @@ router.post("auth.config", async (ctx) => {
ctx.body = {
data: {
name: team.name,
logo: team.preferences?.publicBranding ? team.avatarUrl : undefined,
providers: filterProviders(team),
},
};
@@ -74,6 +75,7 @@ router.post("auth.config", async (ctx) => {
ctx.body = {
data: {
name: team.name,
logo: team.preferences?.publicBranding ? team.avatarUrl : undefined,
hostname: ctx.request.hostname,
providers: filterProviders(team),
},
@@ -95,6 +97,7 @@ router.post("auth.config", async (ctx) => {
ctx.body = {
data: {
name: team.name,
logo: team.preferences?.publicBranding ? team.avatarUrl : undefined,
hostname: ctx.request.hostname,
providers: filterProviders(team),
},