public function removeUserByUniqueId(int $authorId, string $uniqueId) : bool
{
$this->db->beginTransaction();
$userID = (int) $this->db->cell('SELECT userid FROM airship_users WHERE uniqueid = ?', $uniqueId);
if (empty($userID)) {
throw new UserFeedbackException(\__('There is no user with this Public ID.'));
}
if (!$this->userHasAccess($authorId, $userID)) {
throw new UserFeedbackException(\__("This User doesn't have access to this Author."));
}
$this->db->delete('hull_blog_author_owners', ['authorid' => $authorId, 'userid' => $userID]);
return $this->db->commit();
}