Skip to content

Commit

Permalink
Added policy to allow access to individual pages
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinovg committed Dec 18, 2023
1 parent 89d46b5 commit ded64ac
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# $This file is distributed under the terms of the license in LICENSE$

@prefix access-individual: <https://vivoweb.org/ontology/vitro-application/auth/individual/> .
@prefix access: <https://vivoweb.org/ontology/vitro-application/auth/vocabulary/> .
@prefix : <https://vivoweb.org/ontology/vitro-application/auth/individual/allow-display-individual-page/> .

:Policy a access:Policy ;
access:priority 1000 ;
access:hasRule :AllowDisplayIndividualPages .

:AllowDisplayIndividualPages a access:Rule;
access:requiresCheck :OperationCheck ;
access:requiresCheck :AccessObjectTypeCheck ;
.

:OperationCheck a access:Check ;
access:useOperator access-individual:Equals ;
access:hasTypeToCheck access-individual:Operation ;
access:values access-individual:DisplayOperationValueSet ;
.

:AccessObjectTypeCheck a access:Check ;
access:useOperator access-individual:Equals ;
access:hasTypeToCheck access-individual:AccessObjectType ;
access:values access-individual:IndividualAccessObject ;
.

0 comments on commit ded64ac

Please sign in to comment.