public function userHasAccess(int $authorId, int $userId = 0) : bool
{
if ($userId < 1) {
$userId = $this->getActiveUserId();
}
return $this->db->exists('SELECT count(*) FROM view_hull_users_authors WHERE authorid = ? AND userid = ?', $authorId, $userId);
}