I'm using the Rest Server (https://github.com/philsturgeon/codeigniter-restserver) extension for CodeIgniter and I'm struggling to find examples on how to set the authorization level within a method.
I've tried all of the following:
public function index_get()
{
$this->methods['index']['level'] = 10;
$this->methods['level'] = 10;
$this->rest->level = 10;
$this->level = 10;
}
With no luck. Examples appreciated. Thanks!