diff --git a/config/authorization/config.ex b/config/authorization/config.ex index fb10aaa..eecddc1 100644 --- a/config/authorization/config.ex +++ b/config/authorization/config.ex @@ -7,6 +7,11 @@ alias Acl.GroupSpec, as: GroupSpec alias Acl.GroupSpec.GraphCleanup, as: GraphCleanup defmodule Acl.UserGroups.Config do + + @error_type [ + "https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/core-vocab.html#Error" + ] + @protected_resource_type [ "http://www.w3.org/ns/org#Organization", "http://data.vlaanderen.be/ns/besluit#Besluit", @@ -99,7 +104,7 @@ defmodule Acl.UserGroups.Config do %GraphSpec{ graph: "http://mu.semte.ch/graphs/organisatieportaal", constraint: %ResourceConstraint{ - resource_types: @protected_resource_type + resource_types: @protected_resource_type ++ @error_type } } ] @@ -112,7 +117,7 @@ defmodule Acl.UserGroups.Config do %GraphSpec{ graph: "http://mu.semte.ch/graphs/organisatieportaal", constraint: %ResourceConstraint{ - resource_types: @protected_resource_type + resource_types: @protected_resource_type ++ @error_type } } ] diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 329f8aa..a3a970a 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -267,6 +267,14 @@ defmodule Dispatcher do end + ################################################################# + # ERROR REPORT + ################################################################# + + match "/error-reports/*path", %{ layer: :api_services, accept: %{ json: true } } do + forward conn, path, "http://error-report-service/error-reports/" + end + ################################################################# # FILES ################################################################# diff --git a/docker-compose.yml b/docker-compose.yml index 28669fc..3102f6b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -414,3 +414,8 @@ services: environment: - discovery.type=single-node restart: always + + error-report-service: + image: lblod/error-report-service:0.1.0 + links: + - db:database \ No newline at end of file