diff --git a/services/application/src/actions/load-context.js b/services/application/src/actions/load-context.js index 0ee0145d..1ac0f4b7 100644 --- a/services/application/src/actions/load-context.js +++ b/services/application/src/actions/load-context.js @@ -45,5 +45,7 @@ module.exports = async ({ applicationId, email, ipAddress } = {}) => { user, mergedTeams, mergedAccessLevels, + hasTeams: Boolean(mergedTeams.length), + hasUser: Boolean(user), }; }; diff --git a/services/graphql/src/graphql/definitions/app-user.js b/services/graphql/src/graphql/definitions/app-user.js index 4f7cb494..a944bd5a 100644 --- a/services/graphql/src/graphql/definitions/app-user.js +++ b/services/graphql/src/graphql/definitions/app-user.js @@ -19,6 +19,8 @@ type AppContext { user: AppUser mergedAccessLevels: [AccessLevel] mergedTeams: [Team] + hasTeams: Boolean! + hasUser: Boolean! } type AppUser {