public function canEditPagesAction()
    {
        $melisCoreAuth = $this->getServiceLocator()->get('MelisCoreAuth');
        $xmlRights = $melisCoreAuth->getAuthRights();
    	$rightsObj = simplexml_load_string($xmlRights);
        $sectionId = MelisCmsRightsService::MELISCMS_PREFIX_PAGES;
        if (empty($rightsObj->$sectionId->id))
            $edit = 0;
        else 
            $edit = 1;
            
        $result = array(
            'success' => 1,
            'edit' => $edit
        );
         
        return new JsonModel($result);
    }
public function canEditPagesAction()
    {
        $melisCoreAuth = $this->getServiceLocator()->get('MelisCoreAuth');
        $xmlRights = $melisCoreAuth->getAuthRights();
    	$rightsObj = simplexml_load_string($xmlRights);
        $sectionId = MelisCmsRightsService::MELISCMS_PREFIX_PAGES;
        if (empty($rightsObj->$sectionId->id))
            $edit = 0;
        else 
            $edit = 1;
            
        $result = array(
            'success' => 1,
            'edit' => $edit
        );
         
        return new JsonModel($result);
    }
public function canEditPagesAction ( ) { $ melisCoreAuth = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreAuth' ) ; $ xmlRights = $ melisCoreAuth -> getAuthRights ( ) ; $ rightsObj = simplexml_load_string ( $ xmlRights ) ; $ sectionId = MelisCmsRightsService :: MELISCMS_PREFIX_PAGES ; if ( empty ( $ rightsObj -> $ sectionId -> id ) ) $ edit = 0 ; else $ edit = 1 ; $ result = array ( 'success' => 1 , 'edit' => $ edit ) ; return new JsonModel ( $ result ) ; }
Sends back if a page can be edited by the user or not

@return \Zend\View\Model\JsonModel
Sends back if a page can be edited by the user or not