remove account spec
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user