[eluser]boltsabre[/eluser]
A couple of options, depending on your set up.
If you just have one controller that is restricted I'd just put your code into the constructor as mentioned above, that way every method of that controller becomes restricted.
If you have a handful of controllers that are restricted then you could either:
1. Isolate that code into a helper and in each restricted controller call that helper in the constructor, or...
2. As per Aken extend your base controller with MY_Controller, extend MY_Controller by another class called, for example, "MY_Restricted_Controller (and put your restriction code in it's contructor), and then have any restricted controllers extend MY_Restrcited_Controller rather than CI_Controller or MY_Controller