public function listAll() { if ($this->data['users']->role != "admin") { exit; } return staticPages::get(); }