Added a draft flag to the News Entity
Solves issue #11 Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -24,7 +24,9 @@ class NewsController extends Controller
|
||||
public function sideListAction()
|
||||
{
|
||||
$newsRepo = $this->getDoctrine()->getRepository('KekRozsakFrontBundle:News');
|
||||
$searchCriteria = array();
|
||||
$searchCriteria = array(
|
||||
'draft' => false;
|
||||
);
|
||||
if (
|
||||
!is_object($this->get('security.context')->getToken())
|
||||
|| !is_object($this->get('security.context')->getToken()->getUser())
|
||||
|
Reference in New Issue
Block a user