1. 26 Sep, 2018 1 commit
    • Harshil Sharma's avatar
      #MM-12130 changes for custom service terms (#9450) · af275fe9
      Harshil Sharma authored
      * #MM-12130 changes for custom service terms
      
      * Fixed styling
      
      * Added getServiceTerms API
      
      * removed unnecessary panic
      
      * removed custom service terms text from flat config
      
      * reverted user sql store as those changes are no longer needed
      
      * added tests
      
      * Updated a config key to be more standard
      
      * Added copyright info
      
      * Loading service terms only if the feature is enabled
      
      * Loading service terms only if the feature is enabled
      
      * removed unused index
      
      * added createservice termns API
      
      * made a param to bool instead of string
      
      * added createservice termns API
      
      * review fixes
      
      * fixed styling
      
      * Minor refactoring
      
      * removed saveConfig and loadConfig magic
      
      * added empty service terms text check to createServiceTerms API
      
      * refactoed some urls to be terms_of_service instead of service_terms
      
      * removed check for support settings
      
      * changed URLs in tests
      
      * removed unused code
      
      * fixed a bug
      
      * added service termd id in conif
      
      * fixed a test
      
      * review fixes
      
      * minor fixes
      
      * Fixed TestCreateServiceTerms
      af275fe9
  2. 24 Sep, 2018 1 commit
  3. 31 Jul, 2018 2 commits
  4. 18 Jul, 2018 1 commit
    • Chris Duarte's avatar
      Support for Embeded chat (#9129) · 3fcecd52
      Chris Duarte authored
      * Add ucLive support
      
      crazy testing
      
      lovely logs
      
      more cookie work arounds
      
      Added Access-Control-Expose-Headers to user login
      
      Add complete_saml_body template and revert loginWithSaml endpoint
      
      Set Access-Control-Allow-Credentials to true in user login
      
      Login via email instead of username
      
      Clean up code
      
      Add comment to give some context
      
      Move faml logic into saml function
      
      Communicate via chrome sendMessage api
      
      Remove unused code
      
      Add config to support multiple extensions
      
      Clean up embedded complete_saml template
      
      Fix indentation for templates
      
      Added license header to extension.go
      
      Add EnableExperimentalExtensions flag
      
      Extension validated for email auth
      
      Clean up api auth code
      
      Remove complete_saml_body.html
      
      * Add extension support in saml
      
      * Clean up code
      
      * Clean up extension validation
      3fcecd52
  5. 11 Jul, 2018 1 commit
    • Jesse Hallam's avatar
      MM-11241: fix context site url header (#9079) · 7c08ff99
      Jesse Hallam authored
      * fix context's SiteURLHeader to use the subpath
      
      This fixes various commands such as /open and /groupmsg, as well as
      OAuth related redirects.
      
      * MM-11246: also leverage GetSiteHeader() in completeSaml
      7c08ff99
  6. 06 Jul, 2018 2 commits
  7. 26 Jun, 2018 1 commit
  8. 23 Jun, 2018 1 commit
  9. 21 Jun, 2018 1 commit
    • Jesse Hallam's avatar
      MM-10370: serve subpath (#8968) · dd35ad43
      Jesse Hallam authored
      * factor out GetSubpathFromConfig
      
      * mv web/subpath.go to utils/subpath.go
      
      * serve up web, api and ws on /subpath if configured
      
      * pass config to utils.RenderWeb(App)?Error
      
      This allows the methods to extract the configured subpath and redirect
      to the appropriate `/subpath/error` handler.
      
      * ensure GetSubpathFromConfig returns trailing slashes deterministically
      
      * fix error 404 handling
      
      * redirect /subpath to /subpath/
      
      This is necessary for the static handler to match, otherwise none of the
      registered routes find anything. This also makes it no longer necessary
      to add trailing slashes in the root router.
      dd35ad43
  10. 14 Jun, 2018 2 commits
  11. 04 Jun, 2018 1 commit
  12. 01 Jun, 2018 1 commit
  13. 29 May, 2018 1 commit
    • Jesús Espino's avatar
      MM-8853: Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS permissions (#8860) · e88fe4bb
      Jesús Espino authored
      * MM-8853: Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS permissions
      
      * MM-8853: Removing unnecesary emoji enterprise feature
      
      * Create emojis migration
      
      * Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS always to system admins
      
      * Simplifing permissions checks
      
      * Revert "Simplifing permissions checks"
      
      This reverts commit e2cafc1905fc9e20125dd9a1552d2d0c7340ae59.
      e88fe4bb
  14. 22 May, 2018 1 commit
  15. 21 May, 2018 1 commit
  16. 18 May, 2018 1 commit
  17. 16 May, 2018 1 commit
    • Joram Wilander's avatar
      MM-8708 Remove api package (#8784) · 1f6c271b
      Joram Wilander authored
      * Remove api package
      
      * Remove api dependency from cmd package
      
      * Remove EnableAPIv3 setting
      
      * Update web tests
      
      * Add more websocket tests
      
      * Move some ws and oauth tests to api4 package
      
      * Move command tests into api4 package
      
      * Test fixes
      
      * Fix msg command test
      
      * Add some app file tests
      1f6c271b
  18. 14 May, 2018 2 commits
  19. 27 Apr, 2018 1 commit
    • Christopher Speller's avatar
      Structured logging (#8673) · 686c2fba
      Christopher Speller authored
      * Implementing structured logging
      
      * Changes to en.json to allow refactor to run.
      
      * Fixing global logger
      
      * Structured logger initalization.
      
      * Add caller.
      
      * Do some log redirection.
      
      * Auto refactor
      
      * Cleaning up l4g reference and removing dependancy.
      
      * Removing junk.
      
      * Copyright headers.
      
      * Fixing tests
      
      * Revert "Changes to en.json to allow refactor to run."
      
      This reverts commit fd8249e99bcad0231e6ea65cd77c32aae9a54026.
      
      * Fixing some auto refactor strangeness and typo.
      
      * Making keys more human readable.
      686c2fba
  20. 09 Apr, 2018 1 commit
  21. 21 Mar, 2018 1 commit
    • Jesse Hallam's avatar
      Fix various segfaults when running `go test` manually (#8448) · 9d701c70
      Jesse Hallam authored
      * 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
      9d701c70
  22. 12 Mar, 2018 1 commit
  23. 06 Mar, 2018 1 commit
  24. 23 Feb, 2018 1 commit
  25. 16 Feb, 2018 1 commit
  26. 12 Feb, 2018 1 commit
  27. 07 Feb, 2018 2 commits
    • Chris's avatar
      ABC-132: sign error page parameters (#8197) · eff65aa0
      Chris authored
      * sign error page parameters
      
      * add comments
      eff65aa0
    • Pierre de La Morinerie's avatar
      Abort on critical error during server startup (#8204) · 809a1645
      Pierre de La Morinerie authored
      Only a handful of critical errors are present in the codebase.
      They all occur during server startup (in `app.StartServer()`).
      
      Currently, when one of these critical error occurs, it is simpled
      mentionned in the logs – then the error is discarded, and the app
      attempts to continue the execution (and probably fails pretty quickly in
      a weird way).
      
      Rather than continuing operations in an unknow state, these errors should
      trigger a clean exit.
      
      This commit rewrites critical startup errors to be correctly
      propagated, logged, and then terminate the command execution.
      Additionnaly, it makes the server return a proper error code to the
      shell.
      809a1645
  28. 06 Feb, 2018 1 commit
    • George Goldberg's avatar
      XYZ-37: Advanced Permissions Phase 1 Backend. (#8159) · e1cd6461
      George Goldberg authored
      * 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.
      e1cd6461
  29. 11 Jan, 2018 1 commit
  30. 05 Dec, 2017 1 commit
  31. 21 Nov, 2017 1 commit
  32. 20 Nov, 2017 1 commit
  33. 31 Oct, 2017 2 commits
  34. 26 Oct, 2017 1 commit