There are three main concepts: Events, Authorizer and Rule. Probably the best way of understading them is by checking the already implemented ones.
Represents a association between an User
and a Subject
.
Must implement the allows
method. This method must return a boolean whether the user can or cannot access a determined subject, overriding the rules.
Must implement the allows
method. Normally it will verify the events between User
and Subject
.
@paywall
This content is blocked after reading 3 different contents.
@else
If the content is blocked, this is shown.
@endpaywall