influxdb/server
Michael Desa 09f79f3a3e Grant user role in default org if added via API
When users are created via the API they are only given roles in orgs
that are explicitly set. Additionally the roles must be roles that
belong to the current organization (unless they are a super admin).

This leads to a situation where a user may not be a part of the default
organization. If this is the case, we detect it when the user hits /me
and add the user to the default org.
2017-11-06 09:46:00 -05:00
..
assets.go Move URLPrefixer setup to mux, add default 2017-01-27 19:14:21 -05:00
auth.go Properly pass organization context to handlers 2017-11-03 09:13:03 -04:00
auth_test.go Add exhaustive test for AuthorizedUser 2017-11-01 16:38:17 -04:00
builders.go Make all Store names plural for consistency 2017-10-24 15:54:24 -07:00
builders_test.go Make all Store names plural for consistency 2017-10-24 15:54:24 -07:00
cells.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
cells_test.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
dashboards.go WIP cleanup 2017-10-31 20:58:40 -04:00
dashboards_test.go Merge remote-tracking branch 'origin/multitenancy' into multitenancy_orgs 2017-10-26 18:21:30 -04:00
databases.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
databases_test.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
helpers.go Refactor setting writer Location header 2017-10-11 10:14:57 -07:00
hsts.go Add HSTS handler to add headers for upcoming TLS support 2017-02-12 18:21:49 -06:00
influx.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
kapacitors.go WIP cleanup 2017-10-31 20:58:40 -04:00
kapacitors_test.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
layout.go WIP cleanup 2017-10-31 20:58:40 -04:00
layout_test.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
links.go Conserve memory allocation for customLinks slice 2017-06-27 12:00:05 -07:00
links_test.go Clarify error output for missing Name or URL 2017-06-27 13:40:26 -07:00
logger.go Add HTTP status code to logs 2017-05-08 14:40:50 -07:00
logout.go Fix OAuth when using Basepath 2017-05-08 14:40:50 -07:00
mappings.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
me.go Grant user role in default org if added via API 2017-11-06 09:46:00 -05:00
me_test.go Grant user role in default org if added via API 2017-11-06 09:46:00 -05:00
mountable_router.go Fix OAuth when using Basepath 2017-05-08 14:40:50 -07:00
mountable_router_test.go Implement a MountableRouter 2017-04-03 17:06:21 -04:00
mux.go WIP cleanup 2017-10-31 20:58:40 -04:00
organizations.go Add default role to chronograf.Organization 2017-11-06 09:46:00 -05:00
organizations_test.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
path.go Fix PathEscape work for go 1.7 2017-04-07 15:32:35 -05:00
permissions.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
permissions_test.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
prefixing_redirector.go Fix infinite spinner with /chronograf basepath 2017-05-09 12:12:42 -07:00
prefixing_redirector_test.go Fix infinite spinner with /chronograf basepath 2017-05-09 12:12:42 -07:00
proxy.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
queries.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
queryconfig.go Update rawtext in queryconfig to be null and not omitempty 2017-04-07 17:32:10 -05:00
redoc.go Miscellaneous lint cleanup 2016-12-20 12:59:56 -08:00
routes.go Add organizations and users routes to allRoutes 2017-11-01 12:59:07 -04:00
routes_test.go Fix routes tests 2017-11-01 14:09:58 -04:00
server.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
service.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
sources.go WIP cleanup 2017-10-31 20:58:40 -04:00
sources_test.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
stores.go Fix relevant go-vet/go-lint for server package 2017-11-01 16:43:31 -04:00
swagger.go Miscellaneous lint cleanup 2016-12-20 12:59:56 -08:00
swagger.json Update changelog and version number for 1.3.10.0 2017-10-24 09:34:31 -04:00
templates.go Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
templates_test.go Add support for :autoGroupBy: template variable 2017-06-13 14:59:56 -04:00
test_helpers.go Add jsonEqual to test helpers file 2017-10-11 14:33:55 -04:00
url_prefixer.go Bypass URLPrefixer if http.Flusher is unavailable 2017-04-04 10:33:14 -04:00
url_prefixer_test.go Add test for creating NewSources via server flag 2017-07-07 12:56:12 -07:00
users.go Prevent duplicate organization roles in user CRUD 2017-11-03 12:06:18 -04:00
users_test.go Prevent duplicate organization roles in user CRUD 2017-11-03 12:06:18 -04:00
version.go Update to fix go linter issues 2017-03-06 10:11:52 -06:00