summaryrefslogtreecommitdiffstats
path: root/app/team_test.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-11327: Restrict Teams by Email (#9142)Gabe Van Engel2018-08-281-22/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Check a team's AllowedDomains setting before adding users to the team. * Updated AddUser tests to validate AllowedDomains restriction. * Updated variable name to match convention. * Removed AllowedDomains from team sanitization. * Update AppError's Where to match the calling function. * Added tests for user matching allowedDomains, and multi domain values of allowedDomains. * Added test to make sure we block users who have a subdomain of a whitelisted domain. * Revert "Removed AllowedDomains from team sanitization." This reverts commit 17c2afea584da40c7d769787ae86408e9700510c. * Update sanitization tests to include dockerhost, now that we enforce AllowedDomains. * Added tests to verify the interplay between the global and per team domain restrictions. * Validate AllowedDomains property against RestrictCreationToDomains before updating a team. * Remove team.AllowedDomains from sanitization. * Add i18n string for the team allowed domains restriction app error.
* MM-11521/MM-11522 Fix being able to create users with invalid emails through ↵Harrison Healey2018-08-011-24/+1
| | | | | | | | | | | | | | API (#9199) * MM-11522 Fix being able to create users with invalid emails through API * Ensure store tests are using valid emails * Add missing license header * Remove invalid test case * Fix TestUpdateOAuthUserAttrs
* MM-10182 & MM-10183: Adds channel scheme and team scheme API endpoint. (#8680)Martin Kraft2018-05-021-0/+18
| | | | | | | | | | | | * MM-10183: Adds channel scheme API endpoint. MM-10182: Adds team scheme API endpoint. MM-10182_3: Switch from scheme_id in path to body. * MM-10182/MM-10183: Changes path from 'schemes' to 'scheme'. * MM-10182: Fix merge error.
* MM-9779: Incorporate a Token into the invitations system (#8604)Jesús Espino2018-04-181-0/+78
| | | | | | | | | | | | | | | | | | | | * Incorporate a Token into the invitations system * Adding unit tests * Fixing some api4 client tests * Removing unnecesary hash validation * Change the Hash concept on invitations with tokenId * Not send invitation if it wasn't able to create the Token * Fixing some naming problems * Changing the hash query params received from the client side * Removed unneded data param in the token usage
* MM-9999 Fix unwanted team invite_id in email invites. (#8550)Christopher Speller2018-03-291-67/+0
| | | | | | * Fix unwanted team invite_id in email invites. * Removing unused translation.
* Remove unnecesary lineJesús Espino2018-02-191-1/+0
|
* XYZ-111: Check max users per team on re-join after leave a teamJesús Espino2018-02-131-0/+89
|
* Added invite_id field to email invite url, along with validation of this ↵Jonathan2018-02-121-0/+67
| | | | field on the server (#8235)
* [PLT-6936] Translate AppError.Message automatically by default (#8063)Jesús Espino2018-01-081-1/+1
|
* Role refactor (#7867)Chris2017-11-211-25/+25
| | | | | | | | * role refactor * add missing file * fix web test
* PLT-7811 Standardized team sanitization flow (#7586)Harrison Healey2017-10-091-0/+214
| | | | | | | | | | | | | | | | | | * post-4.3 commit (#7581) * reduce store boiler plate (#7585) * fix GetPostsByIds error (#7591) * PLT-7811 Standardized team sanitization flow * Fixed TestGetAllTeamListings * Stopped sanitizing teams for team admins * Removed debug logging * Added TearDown to sanitization tests that needed it
* Fix races / finally remove global app for good (#7570)Chris2017-10-041-0/+6
| | | | | | | | | | | | * finally remove global app for good * test compilation fixes * fix races * fix deadlock * wake up write pump so it doesn't take forever to clean up
* Remove global app references (#7433)Chris2017-09-121-34/+28
| | | | | | | | * remove global app references * test fix * fix api4 test compilation
* Renaming repoChristopher Speller2017-09-061-1/+1
|
* app type transition (#7167)Chris2017-09-061-28/+34
|
* PLT-7288: Allow CLI to delete teams with no channels. (#7135)George Goldberg2017-08-091-0/+20
|
* make cli team / channel delete operations also delete webhooks and slash ↵Chris2017-07-311-0/+41
| | | | commands (#7028)
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* PLT-6198: Use added to channel system message on default channels. (#5969)George Goldberg2017-04-041-1/+1
| | | | Use a different sytem message when a user was added to a default channel by someone else than when they joined themselves.
* PLT-5900 Removed automatic configuration of SiteURL (#5952)Harrison Healey2017-04-041-6/+5
| | | | | | | | | | | | | | | | * Revert "PLT-5765 Passed SiteURL to SendNotifications (#5705)" This reverts commit a8e68bd8905972ae59de90fa33d5b3e3c274dc47. * Removed automatic configuration of SiteURL * Reverted unintentional config changes * Updated help text * Added link to docs in Site URL warning * Fixed merge conflict
* PLT-5765 Passed SiteURL to SendNotifications (#5705)Harrison Healey2017-03-101-5/+6
|
* Add initial tests for app/team.go (#5208)Carlos Tadeu Panato Junior2017-01-301-0/+114
* . * add initial tests for app/team.go