/** * Check ban status * @param User $user * @param Journal $journal * @return bool */ public function checkUserPermit(User $user, Journal $journal) { return $journal->getBannedUsers()->contains($user) ? false : true; }