function checkPrivateAccess($link) { //$this->Flash->set('Private',['class' => 'error']); return Auth::isAuthentified(); }