Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/284 #294

Open
wants to merge 169 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
1c6f0d7
Add base functionality and components, etc. for realize teams.
oboz Oct 19, 2017
a03443e
Add endpoint to change team
Oct 19, 2017
20c8ddc
Add new button component. Change team screen layout.
oboz Oct 20, 2017
8abdc6c
Implement teams in backend-db
oboz Oct 22, 2017
945644b
Implement teams in backend-db
oboz Oct 22, 2017
fa15cb6
Add new button component. Change team screen layout.
oboz Oct 23, 2017
6783ac0
Fix loading teams when app is started
oboz Oct 25, 2017
7582327
Pre-final implementation of teams functionality
oboz Oct 25, 2017
4a76e2c
Predefined teams added
oboz Oct 26, 2017
91330ee
Add predefined teams list to DB
oboz Oct 26, 2017
dd4608f
Add images for profile features list
oboz Oct 26, 2017
63869db
Final version of implementation of teams functionality
oboz Oct 27, 2017
d9b1330
Sorting of commands was transferred from the mobile app to the backend
oboz Oct 28, 2017
29c9d0a
Base for implement "trashpoint by teams" functionality.
oboz Oct 31, 2017
d95b316
Update gitignore
oboz Nov 2, 2017
e77dc1b
Rewrite Profile screen without react-native-elements
oboz Nov 2, 2017
77bf5fc
Change gitignore files
oboz Nov 2, 2017
3af2039
Remove .idea/ and yarn-error.log files from git
Nov 2, 2017
d96dbd4
Remove .idea folder from root of project
Nov 2, 2017
8309b29
Add preloader and filter to teams screen
Nov 2, 2017
f6ca72f
Code review. Remove teamtrashpoints db and api endpoints. Add data ab…
oboz Nov 4, 2017
8133359
Code review
oboz Nov 4, 2017
ce90a2c
Code review
oboz Nov 4, 2017
45c0002
Fix team in account in API yaml
oboz Nov 4, 2017
1186663
Add translations for Team screen
oboz Nov 5, 2017
68d13d1
Add team screen to admin interface
oboz Nov 5, 2017
537bc0d
Removed forgotten console.log
oboz Nov 5, 2017
679e2b7
Removed forgotten console.log
oboz Nov 5, 2017
8622948
Count users by team
oboz Nov 7, 2017
eb30fcb
Merge remote-tracking branch 'origin/master'
Nov 7, 2017
22407b2
Update volunteer count
krishaamer Feb 27, 2018
14dc65a
Home: fixed add trashpoint button width #168
lynxlynxlynx Mar 2, 2018
2ed5e84
CONTRIBUTING: added TOC for clarity
lynxlynxlynx Mar 7, 2018
d180ed8
web-app: replaced default readme
lynxlynxlynx Mar 7, 2018
4fce1bc
GETTING_STARTED: added
lynxlynxlynx Mar 7, 2018
2fe340d
CONTRIBUTING: added intro with link to getting started guide
lynxlynxlynx Mar 7, 2018
0df5af3
Update gitignore
oboz Mar 8, 2018
2a4ed94
Update to last version
oboz Mar 8, 2018
cd99423
Functionality for save trashpoints in offline mode and sync it after
Mar 8, 2018
ed100d7
MapView: enable google map's inbuilt scale component
lynxlynxlynx Mar 10, 2018
748f50f
Merge branch 'master' of https://github.com/letsdoitworld/World-Clean…
Mar 13, 2018
eecf9c8
Merge branch 'letsdoitworld-master' into OfflineTrashpoint
Mar 13, 2018
85fb587
little fix after problems with conflicts
oboz Mar 13, 2018
93c1d2e
Merge pull request #176 from oboz/OfflineTrashpoint
KucherenkoIhor Mar 13, 2018
17556e8
Add link to wcd translation hub
krishaamer Mar 13, 2018
6f8a17c
google maps: use current release version 3.31
lynxlynxlynx Mar 17, 2018
a867aec
Fix merge bugs and network message output if user know that he in
oboz Mar 18, 2018
ea8d2cc
Merge pull request #187 from oboz/OfflineTrashpoint
KucherenkoIhor Mar 19, 2018
30ff9d3
mobile-app: make use translated trash types #156
lynxlynxlynx Mar 21, 2018
a498b36
removed stale vim temporary file
lynxlynxlynx Mar 21, 2018
744ea98
web-app: enable map type control
lynxlynxlynx Mar 21, 2018
b2d8b92
Fixed the problem of doubling the trash points created in offline mode
oboz Mar 22, 2018
437ba00
Fix marker click in offline mode and 'where in' clause for temp. DB
oboz Mar 22, 2018
894010c
Remove 'OR REPLACE' from insert query to temporary DB for new markers
oboz Mar 22, 2018
a23ec1c
Merge pull request #197 from oboz/OfflineTrashpoint
KucherenkoIhor Mar 22, 2018
1fd3b9f
New Crowdin translations (#150)
krishaamer Mar 22, 2018
93174d3
i18n: remove redundant js files from crowdin sync
lynxlynxlynx Mar 22, 2018
b63cf08
i18n: enable more LTR languages that reached 100%
lynxlynxlynx Mar 22, 2018
df4a91a
i18n: turkish and norwegian (which?) is also 100%
lynxlynxlynx Mar 22, 2018
68df76b
New translations ui-strings.json (Polish)
krishaamer Mar 22, 2018
c09468c
Add Slack link
krishaamer Mar 22, 2018
5586f6f
New translations ui-strings.json
lynxlynxlynx Mar 22, 2018
af1dc52
New Crowdin translations (#201)
krishaamer Mar 26, 2018
203b379
CountryModal: fixed untranslatable strings
lynxlynxlynx Mar 27, 2018
85ed0ff
Merge pull request #196 from letsdoitworld/fix156
lynxlynxlynx Mar 27, 2018
d861a3d
Add to screens loaders if app in offline mode
Mar 28, 2018
d181d23
Add redirect user to home screen if user in offline mode
Mar 28, 2018
6720690
popoverInitialState: use translated string
lynxlynxlynx Mar 28, 2018
54d14ef
AlertModal: increased height a bit
lynxlynxlynx Mar 28, 2018
5590148
CongratsModal: increase header size, for longer translations
lynxlynxlynx Mar 28, 2018
f551bfb
New Crowdin translations (#203)
krishaamer Mar 28, 2018
2f87be8
Fix code after review
oboz Mar 29, 2018
ede1588
Save profile with redux-persist
oboz Mar 29, 2018
a855955
Merge branch 'master' into OfflineTrashpoint
lynxlynxlynx Mar 29, 2018
9c21d5d
Merge pull request #205 from oboz/OfflineTrashpoint
lynxlynxlynx Mar 29, 2018
435dfcc
Api.js: enable BASE_URL override without modifying the file
lynxlynxlynx Mar 29, 2018
40d42d4
web-app: added instructions for running vs local api server
lynxlynxlynx Mar 29, 2018
0cf7954
Merge pull request #186 from letsdoitworld/fix185
lynxlynxlynx Mar 30, 2018
ec16b93
mobile-app: use translated composition types also when not editing a TP
lynxlynxlynx Mar 30, 2018
f438102
mobile: fix expo build
lynxlynxlynx Apr 2, 2018
529d30c
ui-strings: added the 3 new offline strings
lynxlynxlynx Apr 3, 2018
d246b8f
Teams first iteration
aleksandr-wemakesoftware Apr 5, 2018
4859570
code review fix
Apr 6, 2018
2359bde
merge fixes
Apr 6, 2018
17d7187
feedback changes
aleksandr-wemakesoftware Apr 9, 2018
99d8b63
merge fixes
Apr 9, 2018
77487d9
feedback changes
aleksandr-wemakesoftware Apr 9, 2018
c016523
Merge branch 'teams_iteration1_pull_request' of github.com:aleksandr-…
aleksandr-wemakesoftware Apr 9, 2018
51b263e
feedback changes
aleksandr-wemakesoftware Apr 9, 2018
428f12b
i18n: manual cherrypicks of the 2 offline strings
lynxlynxlynx Apr 9, 2018
66fe387
cherry-picked the full faroese translation and enabled it
lynxlynxlynx Apr 16, 2018
50403ee
i18n: fixed more typos in the source strings
lynxlynxlynx Apr 16, 2018
82fdd1e
Swarm documentation
daniel-jirca Mar 8, 2018
a68b52f
Fix typo
krishaamer Mar 10, 2018
028e8bc
Add backup script and changes to docs. Fixes letsdoitworld/World-Clea…
daniel-jirca Mar 12, 2018
cd58d5c
fix facebook login
Apr 19, 2018
264ad7e
Merge pull request #221 from aleksandr-wemakesoftware/issues/212
lynxlynxlynx Apr 19, 2018
9f318fb
i18n: added and enabled full japanese translation
lynxlynxlynx Apr 19, 2018
51488b9
sort areas by name
Apr 23, 2018
faea077
pull request fixes
Apr 23, 2018
4e311dc
Revert "CongratsModal: increase header size, for longer translations"
lynxlynxlynx Apr 23, 2018
87ce094
mobile-app/package.json: updated for the latest offline build
lynxlynxlynx Apr 23, 2018
68e030b
Revert "AlertModal: increased height a bit"
lynxlynxlynx Apr 23, 2018
a8b608a
Remove Slack link
krishaamer Apr 25, 2018
ed9f2e0
fix offline trashpoint create
Apr 25, 2018
0309524
issue/224
Apr 25, 2018
6f7e17e
issue/225
Apr 26, 2018
b6a1e49
Revert "sort areas by name"
Apr 26, 2018
4bfeb60
updated expo and react-native versions
aleksandr-wemakesoftware Apr 26, 2018
0438f07
Merge pull request #228 from aleksandr-wemakesoftware/issue/225
severianremi Apr 26, 2018
18d05d3
android create trashpoint fix
May 4, 2018
b93b9b5
android create trashpoint fix
May 5, 2018
a366053
delete console
May 7, 2018
8f24c76
Merge branch 'issues/212' into 'all_in_master'
May 9, 2018
dd4348b
Merge remote-tracking branch 'origin/all_in_master' into all_in_master
May 9, 2018
35021be
expo update fix ios load error
May 9, 2018
c8694f9
Update package.json
May 9, 2018
d137b71
Merge remote-tracking branch 'origin/master' into expo_ios_fix
May 9, 2018
74ce0b4
expo update fix ios load error
May 9, 2018
12ba3c2
Merge branch 'expo_ios_fix' into 'master'
aleksandr-wemakesoftware May 9, 2018
b0b6679
Android fixes for expo update
aleksandr-wemakesoftware May 9, 2018
c93ebc4
permitted rename
May 9, 2018
956ac3e
Merge pull request #234 from aleksandr-wemakesoftware/master
severianremi May 9, 2018
01dc466
marker size on ios fix
May 11, 2018
994bdfd
marker size on ios fix and android fix
May 11, 2018
7a9489d
fix trashpoint creation
May 11, 2018
11a0ca4
Merge pull request #243 from aleksandr-wemakesoftware/issues/237
lynxlynxlynx May 15, 2018
7fc4874
Merge pull request #242 from aleksandr-wemakesoftware/issues/239
lynxlynxlynx May 15, 2018
d7e424c
Changed zoom level and coordinates for blocked geolocation in browser
May 21, 2018
69addd0
Merge pull request #252 from vsheremet92/improvement/change_blocked_g…
lynxlynxlynx May 21, 2018
d404872
team list fixes
May 25, 2018
9fa8e1e
Add teams source strings
krishaamer May 28, 2018
121d2b4
Merge pull request #257 from Haamer-Ventures/master
krishaamer May 28, 2018
d3970f8
Couple of missing strings sourced from en.json
krishaamer May 28, 2018
96f3ac9
Linted json: remove 2 duplicate keys
krishaamer May 28, 2018
05c2832
Valid JSON (RFC 4627)
krishaamer May 28, 2018
af2aedc
Merge pull request #258 from Haamer-Ventures/master
krishaamer May 28, 2018
ada3254
ui-strings: made offline mode warning less confusing #256
lynxlynxlynx May 29, 2018
40220bb
add one more team
May 29, 2018
9b3ba45
merge from git.wemakesoftware.eu
aleksandr-wemakesoftware May 29, 2018
8ee9205
pull request feedback implemented
aleksandr-wemakesoftware May 29, 2018
34417d0
package.json versions
May 30, 2018
d3ec595
Merge branch 'teams_iteration1_pull_request' of ssh://git.wemakesoftw…
aleksandr-wemakesoftware May 30, 2018
4a068e7
ui-string fix
May 31, 2018
d4d5f9c
Merge branch 'teams_iteration1_pull_request' of ssh://git.wemakesoftw…
aleksandr-wemakesoftware May 31, 2018
6a4908a
Merge remote-tracking branch 'github/master' into teams_iteration1_pu…
May 31, 2018
9bf6ec7
Merge branch 'teams_iteration1_pull_request' of ssh://git.wemakesoftw…
aleksandr-wemakesoftware May 31, 2018
3d1a450
Merge pull request #213 from aleksandr-wemakesoftware/teams_iteration…
severianremi May 31, 2018
9eab7aa
i18n: added full German translation
lynxlynxlynx Jun 1, 2018
768de8e
Fix blue screen
Jun 4, 2018
aca0af5
New Crowdin translations (#206)
krishaamer Jun 4, 2018
3204d45
teams view on the mobile client
Jun 5, 2018
993f153
Add null check
Jun 6, 2018
998ee65
Add null check to Offline
Jun 6, 2018
cf6dad9
Merge pull request #270 from letsdoitworld/hotfix/blue_screen
lynxlynxlynx Jun 6, 2018
80e6a73
change search bar input length and fix bug with all teams fetching
Jun 6, 2018
7559bee
Merge pull request #271 from aleksandr-wemakesoftware/issue/265
severianremi Jun 6, 2018
0d8228c
fixed bug with fetching team
Jun 7, 2018
9441f41
Fix retrieving team by id
Jun 7, 2018
c2a3c25
Merge pull request #275 from letsdoitworld/fix-retrieving-team-by-id
SlavaPanevskiy Jun 7, 2018
a5404d8
Merge branch 'master-gh' into issue/14
Jun 7, 2018
aaba76b
fix trashpoint create with team
Jun 8, 2018
c123834
fix trashpoint create with team
Jun 8, 2018
024fc3a
leader loads teams according his assigned area
Jun 8, 2018
72427b0
fixed: mobile app - refreshing team profile, web app - created trashp…
Jun 9, 2018
d189945
display 4 last activity trashpoints in team profile
Jun 11, 2018
6df44a3
delete code from some other branches
Jun 12, 2018
b4eb42f
delete code from some other branches
Jun 12, 2018
b6c6a35
fixed: missing info of trashpoint created in offline mode in latest a…
Jun 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 10 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Contributing to World Cleanup Day App and Platform

Not sure how to start? Read on for the general process or [jump right in](GETTING_STARTED.md).

- [Code of Conduct](#code-of-conduct)
- [How can you contribute?](#how-you-can-contribute)
- [Issue Contributions](#issue-contributions)
- [Code Contributions](#code-contributions)
- [Additional Notes](#additional-notes)
- [Developer's Certificate of Origin 1.1](#developers-certificate-of-origin-11)

## Code of Conduct

* We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic.
Expand All @@ -13,7 +22,7 @@
* Likewise any spamming, trolling, flaming, baiting or other attention-stealing behavior is not welcome.
* Avoid the use of personal pronouns in code comments or documentation. There is no need to address persons when explaining code (e.g. "When the developer").

## How you can contribute?
## How you can contribute?
Do you like to design?

* Create art for social media banners to promote the project
Expand Down
38 changes: 38 additions & 0 deletions GETTING_STARTED.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Getting started

This document will help you set up the project for development.

## Basic dependencies
Install git, docker, docker-compose, node and yarn.


## Backend services
Consult the dedicated [readme](devops/dev/README.md) to set them up, run
them and verify they work.

### Adding dummy data
This repository comes without trashpoint data. You will need some to work
on the related APIS or marker related functionality.

**TODO:** expand with wcd_dummy instructions


## Web-app (admin backend)
Consult the dedicated [readme](web-app/README.md), but in essence:

```bash
npm install # the first time
npm start
```

## Mobile-apps
Consult the dedicated [readme](mobile-app/README.md).


## Extra reading

* [Contributing](./CONTRIBUTING.md) to World Cleanup Day App and Platform
* [Code of Conduct](./CODE_OF_CONDUCT.md)
* [Governance](./GOVERNANCE.md)
* [Roadmap](./ROADMAP.md)
* Issues marked [good first issue](https://github.com/letsdoitworld/World-Cleanup-Day/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[![Join the chat at https://gitter.im/letsdoitworld/World-Cleanup-Day](https://badges.gitter.im/letsdoitworld/World-Cleanup-Day.svg)](https://gitter.im/letsdoitworld/World-Cleanup-Day?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Over 17 million trash heroes have already cleaned up more than 500 000 tonnes of trash in over 100 countries! The movement against pollution is growing fast and we're now building the World Cleanup App and Platform for the hundreds of millions of people people joining the World Cleanup Day on **15th of September 2018**.
Over 20 million trash heroes have already cleaned up more than 500 000 tonnes of trash in over 100 countries! The movement against pollution is growing fast and we're now building the World Cleanup App and Platform for the hundreds of millions of people people joining the World Cleanup Day on **15th of September 2018**.

Together we will get rid of trash once and for all, save lives, improve health & reduce costs. Read below on how you can participate! Let's do it! 😃

Expand Down Expand Up @@ -43,6 +43,9 @@ Join the movement and let's clean up the World together!
## API
See the [API docs](http://ldiw-api.s3-website.eu-central-1.amazonaws.com/)

## Translations
See [translate.worldcleanupday.org](https://translate.worldcleanupday.org/ )

## Roadmap
See [Roadmap.md](https://github.com/letsdoitworld/World-Cleanup-Day/blob/master/ROADMAP.md)

Expand Down
28 changes: 28 additions & 0 deletions backend-api/api/controllers/teams.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use strict';
const senecaRequestMw = require('../../modules/swagger-setup/middleware/seneca');

module.exports = {
getAllTeams: senecaRequestMw(
'role:db,cmd:getAllTeams',
req => ({
CC: req.swagger.params.country.value,
search: req.swagger.params.search.value,
}),
),
getAllTeamsWeb: senecaRequestMw(
'role:db,cmd:getAllTeamsWeb',
req => ({
CC: req.swagger.params.country.value,
superadmin: req.swagger.params.superadmin.value,
}),
),
getCountTeamsTrashpoints: senecaRequestMw(
'role:db,cmd:getCountTeamsTrashpoints',
),
getTeam: senecaRequestMw(
'role:db,cmd:getTeam',
req => ({
id: req.swagger.params.id.value,
}),
)
};
6 changes: 6 additions & 0 deletions backend-api/api/controllers/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ module.exports = {
update: req.swagger.params.update.value,
}),
),
modifyUserTeam: senecaRequestMw(
'role:db,cmd:modifyOwnUserProfile',
req => ({
update: req.swagger.params.update.value,
}),
),
getUserProfile: senecaRequestMw(
'role:db,cmd:getAccountById',
req => ({
Expand Down
125 changes: 125 additions & 0 deletions backend-api/api/v1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ paths:
"default":
$ref: "#/responses/ErrorSet"
#-----------------------------------------------------------------------------
/me/team:
x-swagger-router-controller: users
put:
description: Join user to team.
operationId: modifyUserTeam
x-security: [bearer]
parameters:
- $ref: "#/parameters/ModifyTeam"
responses:
"200":
description: Account information.
schema:
$ref: "#/definitions/Account"
"default":
$ref: "#/responses/ErrorSet"
#-----------------------------------------------------------------------------
/auth/external:
x-swagger-router-controller: users
post:
Expand Down Expand Up @@ -193,6 +209,58 @@ paths:
"default":
$ref: "#/responses/ErrorSet"
#-----------------------------------------------------------------------------
/teams:
x-swagger-router-controller: teams
get:
description: List all teams.
operationId: getAllTeams
parameters:
- $ref: "#/parameters/Country"
- $ref: "#/parameters/Search"
responses:
"200":
$ref: "#/responses/Teams"
"default":
$ref: "#/responses/ErrorSet"
/teams/web:
x-swagger-router-controller: teams
get:
description: List all teams attached to this admin.
operationId: getAllTeamsWeb
x-security: [bearer, {roles:[superadmin, leader]}]
parameters:
- $ref: "#/parameters/Country"
- $ref: "#/parameters/Superadmin"
responses:
"200":
$ref: "#/responses/Teams"
"default":
$ref: "#/responses/ErrorSet"
/teams/trashpoints:
x-swagger-router-controller: teams
get:
description: Fetch information about trashpoints for all teams.
operationId: getCountTeamsTrashpoints
responses:
"200":
$ref: "#/responses/Teams"
"default":
$ref: "#/responses/ErrorSet"
/teams/{id}:
x-swagger-router-controller: teams
get:
description: Fetch complete info about a specific team.
operationId: getTeam
parameters:
- $ref: "#/parameters/UUID"
responses:
"200":
description: Full team information.
schema:
$ref: "#/definitions/Team"
"default":
$ref: "#/responses/ErrorSet"
#-----------------------------------------------------------------------------
/areas/user:
x-swagger-router-controller: areas
get:
Expand Down Expand Up @@ -541,6 +609,20 @@ parameters:
minLength: 3
maxLength: 10
#-----------------------------------------------------------------------------
Search:
name: search
in: query
required: false
type: string
minLength: 3
maxLength: 60
#-----------------------------------------------------------------------------
Superadmin:
name: superadmin
in: query
required: false
type: boolean
#-----------------------------------------------------------------------------
Country:
name: country
in: query
Expand All @@ -559,6 +641,17 @@ parameters:
country:
$ref: "#/definitions/CountryCode"
#-----------------------------------------------------------------------------
ModifyTeam:
name: update
in: body
required: true
schema:
type: object
required: [team]
properties:
team:
$ref: "#/definitions/UUID"
#-----------------------------------------------------------------------------
ModifyTrashpoint:
name: trashpoint
in: body
Expand Down Expand Up @@ -677,6 +770,12 @@ responses:
description: List of trashpoints for area leader consumption.
schema:
$ref: "#/definitions/PaginatedAreaTrashpoints"
Teams:
description: List of teams.
schema:
type: array
items:
$ref: "#/definitions/Team"
StorageAuth:
description: A short-term authorization allowing access to storage operations.
schema:
Expand Down Expand Up @@ -720,6 +819,28 @@ definitions:
description: Area can be optionally be assigned to a user.
$ref: "#/definitions/UUID"
#-----------------------------------------------------------------------------
# Team properties.
#-----------------------------------------------------------------------------
Team:
type: object
required: [id, name]
properties:
id:
description: A unique code of team
type: string
name:
description: A name of team
type: string
teamDescription:
description: Desctiption of team
type: string
trashpoints:
description: How many trashpoints have this team
type: integer
users:
description: How many users have this team
type: integer
#-----------------------------------------------------------------------------
# Account properties.
#-----------------------------------------------------------------------------
Account:
Expand All @@ -743,6 +864,10 @@ definitions:
$ref: "#/definitions/ISOTimestamp"
locked:
type: boolean
team:
type:
- string
- 'null'
AccountPlusAreas:
allOf:
- "$ref": "#/definitions/Account"
Expand Down
2 changes: 1 addition & 1 deletion backend-api/modules/swagger-setup/middleware/security.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const bearerCheck = async (req, res, next) => {
if (response.isSuccessful()) {
const ret = response.getPayload();
req.__.user = util.object.filter(ret.account, {
id: true, termsAcceptedAt: true, role: true,
id: true, termsAcceptedAt: true, role: true, team: true
});
req.__.session = ret.session;
return next();
Expand Down