summaryrefslogtreecommitdiffstats
path: root/app/user.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix sanitization on websocket user edit events. (#8551)Christopher Speller2018-03-291-5/+5
|
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Martin Kraft2018-03-271-0/+2
|\
| * send websocket event when users are activated / deactivated (#8500)Chris2018-03-231-0/+2
| |
* | Merge branch 'master' into advanced-permissions-phase-1Martin Kraft2018-03-231-1/+2
|\|
| * Fix various segfaults when running `go test` manually (#8448)Jesse Hallam2018-03-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * failing to find i18n shouldn't segfault The server was trying to handle the fact that it couldn't find the i18n directory, by emitting a translated log message... * fix utils.FindDir The attempts to find the directory in the parent or grandparent directory don't work if the current working directory was inside `enterprise`, with `enterprise` itself being a symlink as per the usual developer setup. Recurse to the root of the filesystem, cleaning the path along the way to work around this limitation (and allow tests to be run from an arbitrarily deep nesting level.) Fix corresponding usages to employ filepath.Join. * failing to find html templates shouldn't segfault * fail fast if the test user cannot be created * rework utils.FindDir to retain backwards compatibility
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-131-12/+19
|\|
| * Remove query to update channel extra_update_at field on user ↵Joram Wilander2018-03-091-4/+0
| | | | | | | | activation/deactivation (#8415)
| * MM-9274- Sort Users in Channel by status (#8181)Stephen Kiers2018-03-091-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sort by lastActivity * added status ordering to Users * sort offline before dnd * remove data not needed * added seperate call for when order=‘status’ is on GetUser request * remove PrintLn * styling fix * remove mistake * mistake 2 * better comment * explicit if statemnt * writing tests * removed manually added mocks * generated mock * ICU-668 Added unit tests * style fix * sort by lastActivity * added status ordering to Users * sort offline before dnd * remove data not needed * added seperate call for when order=‘status’ is on GetUser request * remove PrintLn * styling fix * remove mistake * mistake 2 * better comment * explicit if statemnt * writing tests * removed manually added mocks * generated mock * ICU-668 Added unit tests * style fix * reverse dnd and offline * Fixed app.SaveStatusAndBroadcast * Fixed incorrect merge * Fixing incorrect merge again
| * general cleanup (#8387)Chris2018-03-071-1/+0
| |
| * remove `go Publish(...)` idiom (#8373)Chris2018-03-021-7/+2
| |
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-021-9/+9
|\|
| * Remove global site url (#8343)Chris2018-02-221-9/+9
| | | | | | | | | | | | | | | | * remove global site url * missed one * revert mysterious change
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Jesús Espino2018-02-071-1/+2
|\|
| * add App.License, remove utils.IsLicensed / utils.License calls (#8203)Chris2018-02-061-1/+2
| |
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-0/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * XYZ-13: Update Permission and Role structs to new design. * XYZ-10: Role store. * XYZ-9/XYZ-44: Roles API endpoints and WebSocket message. * XYZ-8: Switch server permissions checks to store backed roles. * XYZ-58: Proper validation of roles where required. * XYZ-11/XYZ-55: Migration to store backed roles from policy config. * XYZ-37: Update unit tests to work with database roles. * XYZ-56: Remove the "guest" role. * Changes to SetDefaultRolesFromConfig. * Short-circuit the store if nothing has changed. * Address first round of review comments. * Address second round of review comments.
* [XYZ-6] Add sampledata platform command (#8027)Jesús Espino2018-01-111-0/+3
| | | | | | | | * Add fake dependency * [XYZ-6] Add sampledata platform command * Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
* Add admin update endpoint that can update authservice and authdata (#7842)Chris Duarte2018-01-041-0/+24
| | | | | | | | | | * add admin update endpoint that can upate authservice and authdata * Control only SystemAdmin access * Refactored AdminUpdate endpoint to only be able to update AuthData, AuthService and Password by User.Id * Refactor to move `PUT /api/v4/users/{user_id}/auth`. Created a struct to hold UserAuth info.
* Don't omit current user from updated user WS event (#8018)Joram Wilander2018-01-021-3/+1
|
* Role refactor (#7867)Chris2017-11-211-3/+3
| | | | | | | | * role refactor * add missing file * fix web test
* refactor template code (#7860)Chris2017-11-201-2/+2
|
* Include current user in WebSocket update event when setting profile image ↵Joram Wilander2017-11-201-3/+1
| | | | (#7862)
* Refactor password validation and config defaults (#7859)Chris2017-11-201-2/+2
| | | | | | * refactor password validation and config defaults * reorder config lines for clarity
* Reorganize file util functionality (#7848)Chris2017-11-161-3/+3
| | | | | | | | * reorganize file util functionality * fix api test compilation * fix rebase issue
* Merge branch 'release-4.4'Christopher Speller2017-11-091-0/+6
|\
| * PLT-8061 re-activate SAML and Oauth on successful login (#7810)Corey Hulen2017-11-091-0/+6
| |
* | more global config ref cleanup (#7802)Chris2017-11-091-1/+1
|/
* prevent users from changing email addresses to restricted domains (#7765)Chris2017-11-031-0/+11
|
* several one-line panic, race, and logic fixes (#7766)Chris2017-11-031-1/+1
|
* prevent deactivation of sso users (#7759)Chris2017-11-021-3/+3
|
* PLT-7978 Add websocket event for user role update (#7745)Joram Wilander2017-10-311-1/+8
| | | | | | | | * Add websocket event for user role update * Fix tests * More test fixes
* Refactoring cfg refs and load / save functions (#7749)Chris2017-10-311-35/+35
| | | | | | * refactoring cfg refs and load / save functions * improve error output
* simplify things (#7735)Chris2017-10-301-10/+2
|
* Remove more global refs / state (#7723)Chris2017-10-261-1/+1
| | | | | | | | | | * remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix
* eliminate more utils.Cfg references (#7701)Chris2017-10-241-5/+5
|
* Reduce utils.Cfg references (#7650)Chris2017-10-181-14/+14
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* store/sqlstore cleanup and postgres tests (#7595)Chris2017-10-091-3/+3
| | | | | | | | | | * sqlstore cleanup / postgres tests * remove stopped containers * cmd/platform compile fix * remove test-postgres target from makefile
* Goroutine wranglin (#7556)Chris2017-10-031-10/+14
| | | | | | * goroutine wranglin * synchronize WebConn.WritePump
* remove remaining Global() calls (outside of tests) (#7521)Chris2017-09-281-6/+6
|
* remove einterface gets (#7455)Chris2017-09-191-14/+11
|
* [PLT-7573] Make deactivated user not counted in Town Square member count (#7421)Saturnino Abril2017-09-151-0/+16
| | | | | | * make deactivated user not counted in Town Square member count * update app
* Renaming repoChristopher Speller2017-09-061-4/+4
|
* app type transition (#7167)Chris2017-09-061-204/+204
|
* App: NewLocAppError -> NewAppError (#7327)George Goldberg2017-09-011-32/+26
| | | | | | * App: NewLocAppError -> NewAppError * Remove statuscode that got missed.
* set to default value with config is missing (#7320)Saturnino Abril2017-08-301-1/+1
|
* PLT-???? Prepare file upload infrastructure for Data Retention. (#7266)George Goldberg2017-08-251-3/+3
| | | | | | | | | | | | | | | | | * Prepare file upload infrastructure for Data Retention. This commit prepares the file upload infrastructure for the data retention feature that is under construction. Changes are: * Move file management code to utils to allow access to it from jobs. * From now on, store all file uploads in a top level folder which is the date of the day on which they were uploaded. This commit is based on Harrison Healey's branch, but updated to work with the latest master. * Use NewAppError
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-161-1/+1
| | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-311-0/+4
| | | | | | | | | | | | | | | | * Implement user access tokens and new roles * Update config.json * Add public post permission to apiv3 * Remove old comment * Fix model unit test * Updates to store per feedback * Updates per feedback from CS
* PLT-6830 Fixed updating profile image not invalidating cache (#6814)Harrison Healey2017-06-301-1/+3
|
* [PLT-6496] Remove System Console and config settings for image height and ↵Saturnino Abril2017-06-291-10/+10
| | | | | | | | | | width (#6688) * remove System Console and config settings for image height and width * add constants and update config.json * updated as per review
* Make sure to log errors when failing to send emails (#6754)Joram Wilander2017-06-281-4/+2
|