/** * When users are not allowed to publish live changes any new entries they create will be disabled entries * which are not technically drafts * * @param EntryModel $entry * @return bool */ private function isDraft(EntryModel $entry) { return $entry instanceof EntryDraftModel || $entry->getStatus() == 'disabled'; }