It is.
If only single blueprints are affected, it is also possible to do this on a per blueprint basis in a plugin.
Also: Bouncer | Kirby CMS
Page models that override the isReadable()
method are another option:
class NotePage extends Page
{
public function isReadable(): bool
{
static $readable = [];
$template = $this->intendedTemplate()->name();
if (isset($readable[$template]) === true) {
return $readable[$template];
}
if ($this->author()->toUser() === kirby()->user() || kirby()->user()->role()->name() === 'admin') {
return true;
}
return false;
}
}