error report service (#154)

This commit is contained in:
Nordine Bittich
2022-06-02 09:24:41 +02:00
committed by GitHub
parent 96c384bf91
commit 19d52a3a73
3 changed files with 20 additions and 2 deletions

View File

@@ -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
}
}
]