remove account spec

This commit is contained in:
Nordine Bittich
2021-10-19 10:06:38 +02:00
parent b7e8cfe15a
commit 03dab60bea

View File

@@ -7,10 +7,6 @@ alias Acl.GroupSpec, as: GroupSpec
alias Acl.GroupSpec.GraphCleanup, as: GraphCleanup
defmodule Acl.UserGroups.Config do
@account_type [
"http://xmlns.com/foaf/0.1/Person",
"http://xmlns.com/foaf/0.1/OnlineAccount"
]
@protected_resource_type [
"http://www.w3.org/ns/org#Organization",
"http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
@@ -99,26 +95,6 @@ defmodule Acl.UserGroups.Config do
}
}
]
},
%GroupSpec{
name: "account",
useage: [:read],
access: %AccessByQuery{
query: "PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
PREFIX session: <http://mu.semte.ch/vocabularies/session/>
SELECT ?account WHERE {
<SESSION_ID> session:account ?account.
} LIMIT 1",
vars: []
},
graphs: [
%GraphSpec{
graph: "http://mu.semte.ch/graphs/contacthub/accounts",
constraint: %ResourceConstraint{
resource_types: @account_type
}
}
]
},
%GroupSpec{
name: "ch-admin",