public function index($request)
 {
     if (Session::isActive()) {
         $data = array();
         $data['currentPage'] = 'live';
         $data['currentPageTitle'] = 'Mes lives';
         if (LiveAccess::grantedForUser(Session::get())) {
             $data['accessGranted'] = true;
             $data['liveAccesses'] = LiveAccess::all(array('user_id' => Session::get()->id));
             $data['channels'] = Session::get()->getOwnedChannels();
         } else {
             $data['accessGranted'] = false;
             $data['channels'] = Session::get()->getOwnedChannels();
         }
         return new ViewResponse('live/create', $data);
     } else {
         return new RedirectResponse(Utils::generateLoginURL());
     }
 }