@if (isEditing) {
} @if (restrictions.length === 0) {

No content restrictions configured

This user can access all content in their assigned libraries
} @else {
@if (getExcludeRestrictions().length > 0) {
Hidden Content (Exclude)

Books matching these criteria will be hidden from this user

@for (restriction of getExcludeRestrictions(); track restriction.id) {
{{ getRestrictionTypeLabel(restriction.restrictionType) }} {{ restriction.value }} @if (isEditing) { }
}
} @if (getAllowOnlyRestrictions().length > 0) {
Allowed Content Only

Only books matching these criteria will be visible to this user

@for (restriction of getAllowOnlyRestrictions(); track restriction.id) {
{{ getRestrictionTypeLabel(restriction.restrictionType) }} {{ restriction.value }} @if (isEditing) { }
}
}
}
Exclude rules take priority over Allow Only rules for safety