Just solved the problem, it was occurring because of the routing. Trying to apply a route group with a filter to routes that had already been defined as a resource. When I removed the group routes and did some research on using the beforeFilters
in a constructor, I found that I can exclude a function, thus solving my problem.
This line of code was the solution
$this->beforeFilter('admin', array('except' => 'index'));
I hadn't know that I could use the except property, but now it all works well.